Part Number Hot Search : 
PJQ1901 AETCT 2SB123 ICS9248 4LVC3 FBC40A SA36AG T54FCT
Product Description
Full Text Search
 

To Download Z86229NBSP Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
 <
4' &1% '
* * *
Complete Stand-Alone Line 21 Decoder for ClosedCaptioned and Extended Data Services (XDS) Preprogrammed to Provide Full Compliance with EIA-608 Specifications for Extended Data Services Automatic Extraction and Serial Output of Special XDS Packets (Time of Day, Local Time Zone, and Program Blocking) Programmable XDS Filter for a Specific XDS Packet Cost-Effective Solution for NTSC Violence Blocking inside Picture-in-Picture (PiP) Windows
*
Minimal Communications and Control Overhead Provide Simple Implementation of Violence Blocking, Closed Captioning, and Auto Clock Set Features Programmable, On-Screen Display (OSD) for Creating Full Screen OSD or Captions inside a Picture-inPicture (PiP) Window User-Programmable Horizontal Display Position for easy OSD Centering and Adjustment I2C Serial Data and Control Communication Supports 2 Selectable I2C Addresses
*
* * *
* *
Capable of processing Vertical Blanking Interval (VBI) data from both fields of the video frame in data, the Z86229 Line 21 Decoder offers a feature-rich solution for any television or set-top application. The robust nature of the Z86229 helps the device conform to the transmission format defined in the Television Decoder Circuits Act of 1990, and in accordance with the Electronics Industry Association specification 608 (EIA-608). The Line 21 data stream can consist of data from several data channels multiplexed together. Field 1 consists of four data channels: two Captions and two Texts. Field 2 consists of five additional data channels: two Captions, two Texts, and Extended Data Services (XDS). The XDS data structure is
defined in EIA-608. The Z86229 can recover and display data transmitted on any of these nine data channels. The Z86229 can recover and output to a host processor via the I2C serial bus. The recovered XDS data packet is further defined in the EIA-608 specification. The on-chip XDS filters in the Z86229 are fully programmable, enabling recovery of only those XDS data packets selected by the user. This functionality allows the device to extract the required XDS information with proper XDS filter setup for compatibility in a variety of TVs, VCRs, and Set-Top boxes. In addition, the Z86229 is ideally suited to monitor Line 21 video displayed in a PiP window for violence blocking, CCD, and other XDS data services. A block diagram of the Z86229 is illustrated in Figure 1.
01+6#%+(+%'2# 6%7&14 ;4#0+/+.'4
UG ; UG ; [C & H Q GOK6 I PKVC 4 O C T I QT 2 P Q K V E C T V Z ' C V C & EK V C O Q V W #
& &%%
UG ; I PK P QK V R C % F G U QN % [ CN R U K & P G G T E 5 P 1
'0+
. %5 6 0
% Q V % G I PC 4 R O G6 FT C F P C V 5 %+ 1 5 2+ & P K 2 UG R[6 G IC MEC 2 V P W Q % PK 2
01+62+4%5'& .#4'0')
\ */ FGG R 5
#
5'476#'(
< U G EK X G &
01+62+4%5'& .#4'0')
FGWPKVPQ%
+5V VDD 12 7 Sliced Data 13 VIN / Intro 6 4 15 14 16 SMS SEN SCK SDA SDO 1 I2C SEL
Buffer Lock Dual Clamp SIG PG SYNC Slicer Slice Level
Data Bus VW AW FEW Digital II Lock
Status Reg Test Reg
Row
Command Processor Row Latch 4 10 Address MUX
8 CSYNC
;4#0+/+.'42
COMP SYNC
DOT CLK DOT CLK DIV V Lock CHAR CLK CW CHAR CIR
6 Display RAM Display 8 Latch FLD SS CTR 4 Output Logic Line & Field Control BOX BLUE GREEN RED V/I Ref 10 RREF POR CKT 13 Character Generator ADDR DEC
CG Lines MSYNC
CG Logic O/S PH1 OSC
MSGR
ADDR Decoder
PH2
I Drive & MUX
Control
FR
FLD LS SFLD SLS
Line & Fld Decodes 5 9 LPF Loop Filter 11 Vss(A) HIN
5 &
17 3 2 18 Z86229 only
Addr Bus
Video
Data Slicer
Data CLK Recovery
Data Line
Serial Control Port
T G FQ EG & &%% G PK. % 56 0 <
ZiLOG
Figure 1. Z86229 Block Diagram
;4#0+/+.'42
5 &
V WR V W 1 V WR V W 1 V WR V W1 V W R P+ V WR V W1 P+ V W R V W 1 P+
V W R P+ V WR V W 1 V WR V W 1 V W R P+ V W R P+ V W R P+ V W R P+ V WR V W 1 V WR V W 1 V W R P+ P Q K V E G TK &
TG F QEG & &%% GPK . % 56 0 <
PIN DESCRIPTION
ZiLOG
Notes: *Voltages referenced to VSS (A). Values beyond the maximum ratings listed above may cause damage to the device. Functional operation should be restricted to the limits specified in the DC and AC Characteristics tables or Pin Description section.
% % 9O #O #O #O 8 8 8 VK P 7
QV &&8 QV &&8 QV QV G WN C 8
U F P Q E G U T Q H G U C % O QT H O O G T WV C T G R O G 6 F C G . G T W V C T G R O G 6 G I CT QV 5 G E K X G & T G R P QK V C R K U U K & T G Y Q 2 V P G T T W % [N R R W 5 % & PK 2 TG R V P GT T W% V W RV W1 % & PK 2 T G R V PGT T W% V W R P+ % & G I C VN Q 8 V W R V W 1 % & G I C VN Q 8 V W R P + % & G I C VN Q 8 [N R R W 5 % & T GV G O CT C 2
.6 )656 &2 &&+ 671+ 0++ 6718 0+8 &&8 N Q D O[ 5
5)0+6#4 /7/+:#/ '67.15$#
V W R V W 1 Q G FK 8 &'4 N C P IK 5 I PK OK 6 & 5 1 : 1$ V W 1 CVC & NCK TG 5 1&5 M E QN % N CK T G 5 -% 5 CVC & NCK TG 5 #&5 VW1 VRWTTGVP+P+ NCEKVTG8 1460+0+8 &&8 [NR R W 5 T GY Q2 &0 ) I Q N C P # [N R R W 5 T Y 2 # 558 G E P G T G H G 4 T Q V UK U G 4 ('44 T G VNK ( R Q Q . (2 . E P [ 5 G VK U Q R O Q % % 0 ; 5% Q G FK 8 G VK U Q R O Q % 1'&+8 V E GN G 5 G F Q / N CK T G 5 5/5 P + N C V P Q \K T Q * 0+* GN D C P ' N CK T G 5 0'5 V W R V W 1 Q G FK 8 ' 7 .$ V W R V W 1 Q G FK 8 0''4) PQKVEGNG5 UUGTFF# %+ .'5 %+ P QKV EP W( N Q DO[ 5
Q 0
I2C SEL GREEN BLUE SEN HIN SMS VIDEO CSYNC LPF
Figure 2. Z86229 Pin Configuration
1 2 3 4 5 6 7 8 9
18-Pin DIP/SOIC
18 17 16 15 14 13 12 11 10
RED BOX SDO SCK SDA VIN/INTRO VDD VSS (A) RREF
Note: *DIP and SOIC pin configurations are identical.

Table 1. Z86229 Pin Identification*
5 &
;4#0+/+.'42
(z HQ GEPCVKECRCE UGKTGU OWOKPKO C JVKY FGNRWQE %# GD QV NCPIK5 U O J Q F G E CN T G V P + \ * M GXKVC IG P U RKV E P [ 5 $ F v R R 8 U P QK VK F P Q %
Table 2. Composite Video Input
VG UHH 1 % & 4 V W R P+ Z C / G R [ 6 N C P IK 5 JV FK Y F PC$ [ VKT CN Q 2 G F WVKN R O # TG VG OC TC 2
5%+65+4'6%#4#*% )0+/+6 &0# %#
#O 8 8 8 8 VK P 7
#
&&8 && 8 O W OK Z C /
8 &&8 &&8 O W OK PK /
&& 8 8 #O *1+ #O .1+
U P QK VK F P Q %
The characteristics listed below apply for standard test conditions as noted. All voltages are referenced to Ground. Positive current flows into the referenced pin (Figure 3).
STANDARD TEST CONDITIONS
Notes: TA = 0C to +70C; VDD = +4.75V to +5.25V.
V P G T T W % [N R R W 5 G IC MCG. VW R P + J I K * G I C VN Q 8 V W R V W 1 Y Q . G I C VN Q 8 V W R V W 1 J IK * G I C VN Q 8 V W R P + Y Q. G IC VNQ 8 VW R P + T GV G O C T C 2
&&+ .++ *18 .18 *+8 .+8 N Q D O[ 5
5%+65+4'6%#4#*% .#%+46%'.' %&
From Output Under Test
150 pF
Figure 3. Standard Test Load
250 A +5V 2.1 k
ZiLOG
T G FQ EG & &%% G PK. % 56 0 <
;4#0+/+.'42
5 &
V K D V T C V U G J V H Q G I F G I PK U K T G J V H Q V PK Q R F K O G J V Q V G N E [ E P K P W T M E QN E V P G E G T V U Q O GJV HQ GIFG IPKNNCH GJV HQ VPKQRFKO GJV OQTH GTWUCG/ G N E [ E P K P W T M E Q N E V U TK H G J V H Q G I F G I PK UK T G J V H Q V PK Q R FK O G J V Q V G UN W R E P [ U * Q G FK X G VK U Q R O Q E G J V H Q G I F G I P K F C G N G J V H Q V PK Q R FK O G J V O Q T H G T W U C G / J E T Q 2 M E C $ Q V G X KV C N G T ' 4 + ' 4 + ' 4 + U P QK VK F P Q %
U U Table 5. Line Input Parameters U U
GUNWR $(* GUNW2 MECD[N( NCVPQ\KTQ* [CNRUK& UC GOC5 [E PG W SG T( [P# [ VK T CN Q 2 v \ * [E PG W SG T( [P# [ VK T CN Q 2 %% 8 YQ. GTGJY NCPIKU NGXGN 51/% U P QK VK F P Q %
Table 4. Horizontal Signal Input
V W R P + Q G FK 8 G VK U Q R O Q % Q V QK V C 4 NGXGN VC JV V C TG VV G D TQ Y Q T T GR T QT TG G P Q J V K Y F G V J I K G Y 4 + % % Q K V C T G UK Q P Q V N C P I K U $ F C Q V P Y Q F U P QK V E P W H < G J 6 G UK Q 0 Q V N C P I K 5 O W O K P K /
If equalizing pulse serrations are present, they must be less than 0.125H in width. It starts at the proper 2H boundary for its field.
U P Q K V K F P Q E I P K Y Q N N Q H G J V U V G G O V C J V G UN W R E P [ U N C E K V T G X C I P K X C J U N C P IK U G P K N T Q N N C Q V U M E Q N U V K W E T K E E P [ U N C P T G V P K G J 6 O W O K Z C O v O T G V VT Q J U P Q K V C K X G & R R J ( O W O K Z C O v O T G V I P Q N P QK V C K X G & J ( OW OKZCO Uz v JEVKY 5 FCG * RGV 5 G UC J 2 OW OKZCO 8O *v * O WOK PKO 8O U P QK VK F P Q %
Table 3. Non-Standard Video Signal Characteristics
TG F QEG & &%% GPK . % 56 0 <
Nonstandard Video Signals must have the characteristics indicated in Tables 3-6.
ELECTRICAL CHARACTERISTICS
ZiLOG
Note: Line 21 must be in its proper position to the leading edge of the Vertical Sync signal.
C V C & G J V H Q VT CV 5 G F Q % H Q VT CV 5 N G X G . QT G < G F Q % G F W VKN R O # G F Q % TG VG OC TC 2
G F Q / M EQ . 0 + * G F Q / M E Q . Q G FK 8 G F WVKN R O # TG VG OC TC 2
* * *
It is at least 3H +/- 0.5H wide.
N C P IK5 EP[ 5 NC EKV T G 8 I PKOK6 * V N K 6 G UN W 2 N C E K V T G 8 J V F K 9 G UN W 2 N C E K V T G 8 G F WVKN RO # E P[ 5 TG VG OC TC 2
5 &
;4#0+/+.'42
J U U G T F F # T G V UK I G 4 P Q K VK U Q 2 * < G J V Q V G W N C X Y G P C I P K V K T Y [ D U V P G O G T E P K U P PK F G V U W L F C G D P C E U V W R V W Q G U G J V H Q I PK P Q K V K U Q R G J 6 [ C N R UK F FG TG VP GE C G MCO QV VG U PGG D GX CJ $ ) 4 F P C ZQ $ UN C P IK U V W RV W Q G JV H Q IPKOK V G J 6 * V Z U TC JE *V Z U TC JE *V Uz U P \ * / *( Z U P QK VK F P Q %
FGWPKVPQ%
5%+65+4'6%#4#*% .#%+46%'.'
U U
I P K O K 6 [ CN R U K & N C V P Q \ K T Q * T C J % Y Q 4 H Q J V FK 9 Z Q $ Y Q 4 H Q J V FK 9 J V FK9 NNG% TGV EC TC J% FQK TG 2 V Q & VQ& TG VG OC TC 2
Table 6. Timing Signals ZiLOG
T G FQ EG & &%% G PK. % 56 0 <
ZiLOG
PIN DEFINITIONS Inputs
I2C SEL (Pin 1). This pin selects 28h for writing and 29h for Reset Operation. When the SMS and SEN pins are both in the Low (0) state, the part is in the Reset state; therefore, in the I2C mode, the SEN pin can be used as an NReset input. When SPI mode is used, if three wire operation is required, both SMS and SEN can be tied together and used as the NReset input. In either mode, NReset must be held Low (0) for at least 100 ns.
reading when this input is Low(0). When the input is High(1), the device selects 2Ah for writing and 2Bh for reading.
SEN (Pin 4). This pin enables the signal for the SPI mode of operation on the Serial Control Port. When this pin is Low (0), the SPI port is disabled and the SDO pin is in the highimpedance state. Transitions on the SCK and SDA pins are ignored. SPI mode operation is enabled when SMS is High (1). HIN (Pin 5). For this pin, the Horizontal Sync input signal at the CMOS level must be supplied. When the device is used in VIDEO-LOCK mode, the signal pulls the on-chip VCO within the proper range. The circuit uses the frequency of this signal, which must be within +3% Fh, but the overall signal can be of either polarity. When used in the H-lock mode, the VCO phase locks to the rising edge of this signal. The HPOL bit of the H Position register can be set to operate with either polarity of input signal. This signal is usually the H Flyback signal. The timing difference between HIN rising edge and the leading edge of composite sync (of VIDEO input) is one of the factors which affects the horizontal position of the display. Any shift resulting from the timing of this signal can be compensated for with the horizontal timing value in the H Position Register. H-lock is intended for use when the part is generating an OSD display when no video signal is present. SMS (Pin 6). This pin allows the mode select pin for the Se-
Input/Output
VIN/INTRO (Pin 13). In external (EXT) vertical lock mode
of operation, the internal vertical sync circuits lock to the V IN input signal applied at this pin. The part locks to the rising or falling edge of the signal in accordance with the setting of the V Polarity command. The default is rising edge. The VIN pulse must be at least 2 lines wide. In INTRO Mode, when configured for internal vertical synchronization, this pin is an output pin providing an interrupt signal to the master control device in accordance with the settings in the Interrupt Mask Register.
SDA (Pin 14). When the Serial Control Port has been set to
I2C mode operation, this pin serves as the bidirectional data line for sending and receiving serial data. In SPI mode operation, the device operates as a serial data input. SPI mode output data is available on the SDO pin.
Outputs
RED, GREEN, BLUE (Pins 2, 3, 18). These pins are osi-
tive-acting CMOS-level signals.
* *
Color Mode: Red, Green, and Blue characters are incorporated as video outputs for use in a color receiver Mono Mode: In this mode, all three outputs carry the character luminance information
rial Control Port. When this input is at a CMOS High state (1), the Serial Control Port operates in the SPI mode. When the input is Low (0), the Serial Control Port operates in the I2C slave mode. In SPI mode, the SEN pin must be tied High. (See Reset Operation section.)
VIDEO (Pin 7). This pin is a composite NTSC video input,
Note: The selection of Color/Mono Mode is user controlled in
1.0V p-p (nom), band limited to 600 kHz. The circuit operates with signal variation between 0.7-1.4V p-p. The polarity is sync tips negative. This signal pin should be AC coupled through a 0.1 F capacitor, driven by a source impedance of 470 ohms or less.
SCK (Pin 15). This pin is an input for a serial clock signal
bit D1 of the Configuration Register (Address=00h). (See Internal Registers section.)
CSync (Pin 8). Sync slice level. A 0.1 F capacitor must be
tied between this pin and analog ground VSS(A). This capacitor stores the sync slice level voltage.
LPF (Pin 9). Loop Filter. A series RC low-pass filter must
from the master control device. In I2C mode operation, the clock rate is expected to be within I2C limits. In SPI mode, the maximum clock frequency is 10 MHz.
be tied between this pin and analog ground V SS(A). There must also be second capacitor from the pin to V SS(A).
TG F QEG & &%% GPK . % 56 0 <
;4#0+/+.'42
5 &
RREF (Pin 10). Reference setting resistor. Resistor must be
10 kOhms, 2%.
SDO (Pin 16). This pin provides the serial data output when
SPI mode communications have been selected. This pin is not used in I2C mode operation.
BOX (Pin 17). Black box keying output is an active High,
CMOS-level signal used to key in the black box for captions/text displays. This output is in a high-impedance state when the background attribute has been set to semi-transparent.
5 &
;4#0+/+.'42
FGWPKVPQ%
T G FQ EG & &%% G PK. % 56 0 <
501+6+0+('& 0+2
Power Supply
ZiLOG
VSS (Pins 11). These pins are the lowest potential power pins for the analog and digital circuits. They are normally tied to system ground. VDD (Pin 12). The voltage on this pin is nominally 5.0
Volts, and may range between 4.75 to 5.25 Volts with respect to the V SS pins.
Note: The recommended printed circuit pattern for implement-
ing the power connection and critical components is referenced in the Recommended Application Information section on page 49.
ZiLOG
Z86229 BLOCK DIAGRAM DESCRIPTION
The Z86229 is designed to process both fields of Line 21 on a television VBI and provide the functional performance of a Line 21 Closed-Caption decoder and Extended Data Service decoder. This device requires two input signals, Composite Video and a horizontal timing signal (HIN), and several passive components for proper operation. A vertical input signal is also required if OSD display mode is required when no video signal is present. The Decoder performs several functions, including extraction of data from Line 21, separation of the normal Line 21 data from the XDS data, on-screen display of the selected data channel, and outputting of the XDS data through the serial communications channel. The Sync Slicer processes the clamped Comp Video signal to extract Comp Sync. This signal is used to lock the internally generated sync to the incoming video when the videolock mode of operation has been enabled. Sync slicing is performed in two steps. In the non-locked mode, the sync is sliced at a fixed offset level from the sync tip. When proper lock operation has been achieved, the slice level voltage switches from a fixed reference level to an adaptive level. The slice level is stored on the sync slice capacitor (CSYNC). The Data Clock Recovery circuit operates in conjunction with the Digital H-lock circuit. The circuit produces a 32H clock signal (DCLK) that is locked in phase to the clock runin burst portion of the sliced data obtained from the Data Slicer. When the Line 21 code appears, the DCLK phase lock is achieved during the clock run-in burst and is used to reclock the sliced data. After phase lock is established it is maintained until a change in the video signal occurs. The Digital H-Lock circuit produces a variety of signals, including the video timing gates, PG and STG. These signals are all locked in-phase with the HSYNC and the video timing signal, no matter which H-lock mode is used in the display generation circuits. This independent phase lock loop is able to respond quickly to changes in video timing without concern for display stability requirements.
Input Signals
The Composite Video input signal is rated at a nominal 1.0 Volt p-p, with sync tips negative and band-limited to 600 kHz. The Z86229 operates with an input level variation of 3 dB. The HIN input signal is necessary to bring the VCO close to the required operating frequency. This signal must be a CMOS-level signal. The HIN signal can have positive or negative polarity, and the signal is only required to be within 3% of the standard H frequency. When configured for EXT HLK operation, this signal should correspond to the H Flyback signal. The timing difference between the HIN rising edge and the leading edge of composite sync (of VIDEO input) is one of the factors that affects the horizontal position of the display. Any shift resulting from the timing of this signal can be compensated for with the horizontal timing value in the H Position register.
VCO and One Shot
All internal timing and synchronizing signals are derived from the on-board 12-MHz VCO. The VCO output is the DOT CLK signal used to drive both the Horizontal and Vertical counter chains and display timing. The One Shot circuit produces a horizontal timing signal which is derived from the incoming video, and qualified by a Copy Guard logic circuit. The VCO can be locked in phase to two different sources. For television operation, where a good horizontal display timing signal is available, the VCO is locked to the HIN input through the action of the Phase Detector (PH2). When a proper HIN signal is not available (such as in a VCR), the VCO can be locked to the incoming video through the Phase Detector (PH1). In this case, the frequency detector (FR) circuit is activated (as required) to bring the VCO within the pull-in range of PH1.
Video Input Signal Processing
The Composite Video input is AC-coupled to the device. The sync tip is internally clamped to a fixed reference voltage by means of a dual clamp. Initially, the unlocked signal is clamped using a simple clamp. Improved impulse noise performance is then achieved after the internal sync circuits lock to the incoming signal. Noise rejection is obtained by making the clamp operative only during the sync tip. The clamped composite video signal is fed to both the Data Slicer and Sync Slicer blocks. The Data Slicer generates a clean CMOS-level data signal by slicing the signal at its midpoint. The slice level is established on an adaptive basis during Line 21. The resulting value is stored until the next occurrence of Line 21. A high level of noise immunity is achieved by using this process.
Timing and Counting Circuits
The DOT CLK is first divided down to produce the character timing clock CHAR CLK. This signal is then further divided to generate the horizontal timing signals H, 2H and
TG F QEG & &%% GPK . % 56 0 <
;4#0+/+.'42
5 &
HSQR. These timing signals are used in the data output (display) circuits. The H signal is further divided in the LINE and FLD CNTR to produce the various decodes used to establish vertical lock, time displays, and control functions required for proper operation. The H signal is also used to generate the Smooth Scroll timing signal for display.
The V Lock circuits produce a noise free vertical pulse derived from the horizontal timing signal. When the user selects Video as the vertical lock source, the internal synchronizing signals are phased up with the incoming video by comparing the internally generated vertical pulse to an input vertical pulse. These pulses are derived from the Comp Sync signal provided by the Sync Slicer. In the vertical lock set to V IN mode, the VIN signal is used in place of the signal derived from Comp Sync. In either case, when proper phasing has been established, this circuit outputs the LOCK signal which is used to provide additional noise immunity to the slicing circuits. The LOCKed state is established only after several successive fields have occurred and the two vertical pulses remain in sync. When LOCKed, the internal timing will flywheel until the timing of the two vertical pulses lose coincidence for a number of consecutive fields. Until LOCK is established, the decoder operates on a pulse-by-pulse basis.
Command Processor
The Command Processor circuit controls the manipulation of the data for storage and display. This circuit processes the Control Port input commands to determine the display status required and the data channel selected. During the display time (lines 43-237), this information is used to control the loading, addressing, clearing of the Display RAM, and the operations of the Character ROM and Output Logic circuits. During data recovery time (TV lines 21-42), the Command Processor, in conjunction with the data recovery circuits, recovers the XDS data and the data for the selected data channel. Data is sent to the RAM for storage and display and/or to the serial port, as appropriate. Where necessary, the Command Processor converts the input data to the appropriate form.
5 &
;4#0+/+.'42
FGWPKVPQ%
01+62+4%5'& /#4)#+& -%1.$ <
T G FQ EG & &%% G PK. % 56 0 <
Output Logic Decoder Control Circuit Voltage/Current Reference
ZiLOG
The Output Logic circuits operate together to generate the output color signals RED, GREEN and BLUE, and the Box signal. When MONOchrome mode is selected, all three color outputs carry the luminance information. These outputs are positive output logic signals. The character ROM contains the dot pattern for all the characters. The output logic provides the hardware underline, graphics characters, and the Italics slant-generator circuits. The smooth scroll display is achieved by the smooth scroll counter logic, which controls the addressing of the Character ROM.
The Decoder Control Circuit block is the users communications port. The circuit converts the information provided to the control port into the necessary internal control signals required to establish the operating mode of the decoder. This port can be operated in one of two serial modes. The SMS pin is used to establish either of the two serial control modes. In the two wire (I2C) control mode, the Z86229 responds to its slave address for both the read and write conditions. If the read bit is Low (indicating a WRITE sequence), then the Z86229 responds with an acknowledge. The master should then send an address byte followed by a data byte. If the read bit is High (indicating a READ sequence), then the Z86229 responds with an acknowledge followed by a status byte and a data byte, respectively. Read data, however, is only available through indirect addressing; write addressing exhibits both indirect and direct modes. The busy bit in the status byte indicates whether the write operation has been completed or if read data is available. The SPI mode is a three wire bus with the Z86229 acting as the slave device. Communication is synchronized by the SCK signal generated by the master. Typically, the serial data output is transmitted on the falling edge of SCK and the received data is captured on the rising edge of SCK. All data is exchanged as 8-bit bytes.
The Voltage/Current Reference circuit uses an externallyconnected resistor to establish the reference levels that are used throughout the Z86229. For a minimal cost, an external resistor can provide improved internal precision.
ZiLOG
Z86229 FUNCTIONAL DESCRIPTION
The Z86229 provides full function NTSC, Line 21 performance. Input commands are included to enable the decoder to process and display any of the eight Caption/Text data channels (CC1, CC2, CC3, CC4, T1, T2, T3 or T4) contained in Line 21 of either field of the incoming video. XDS data can also be selected for the display. The DECODER ON/OFF commands control whether or not the Line 21 data in the selected channel is actually displayed. When switched to the DECODER OFF (TV) state, incoming data in the selected channel is still processed, but not displayed. The Z86229 can also be configured to operate with PAL or SECAM video signals. The device decodes information encoded into its VBI in Line 22. The encoded data must conform to the waveform and command structure defined for NTSC Line 21 operation. established that should result in a well centered display in a typical application; however, signal delays through videoprocessing circuits can vary between designs. The Z86229 provides the user with the ability to change the default timing. No matter which of the horizontal lock modes are selected, the display horizontal position on the screen can be adjusted in quarter character (330 ns) steps by serial port commands.
Displayable Character Set
Normal Mode. Characters are displayed as white or colored dot matrix characters on an opaque background. The Box is normally black, but the Z86229 can be set to a blue background Box with a serial command. The characters are described by a 12 by 18 dot pattern within a character cell which is 16 dots wide by 26 dots high per frame. The location of the character luminance within the character cell varies from character to character to allow for the display of lower case letters with descenders. All characters have at least a 1-dot border of black around each character. Underline is also provided. Figure 4 illustrates the Z86229 standard character map and font.
VCO Lock
The Z86229 includes a VCO with stable gain characteristics and good power supply rejection. The internal horizontal and vertical synchronizing circuits provide a high degree of noise immunity. There are options for both horizontal and vertical lock. The VCO can be phase locked either to the horizontal signal derived from the video input signal (VIDEO) or to the externally supplied HIN signal, typically horizontal flyback. A HIN lock is used to provide a display having a minimum amount of observable jitter. The low jitter requires a HIN signal derived from a TV display that exhibits proper polarity. This type of signal is readily available in a television receiver. Video-Lock mode enables the VCO to lock inphase to the incoming video signal, thus providing good operation in an application where no display-related HIN signal is available (such as in a VCR).
The character ROM consists of a 12 by 18 dot matrix pattern per character. Alternate rows and columns are read out in each field to produce an interleaved and rounded character. A display row contains a maximum of 32 characters plus a leading and trailing black box, each a character cell in width, making the overall width of a display row 34 x 8 = 272 dots. Successive display rows are butted together so that the total display occupies 195 dots high. The black box is 34 character cells wide by 195 dots high, resulting in a box size of 45.018 s in width by 195 scan lines in height. The Box starts in scan line 43 and extends to scan line 237. Theoretically, the display is horizontally centered in the video display when the Box starts 13.2 s after the leading edge of H. The default setting of the Z86229 places the center of the Box at about 13.5 s to allow for some delay in the normal video path. However, the Box horizontal position can be adjusted by the user in 330 ns increments. The display is approximately within the safe title area for NTSC receivers. Character width is 42.37 s, also centered on the screen, resulting in a leading and trailing 1.32 s black border. An optional Caption display mode, Drop Shadow, can be selected by the user through the serial port. This display mode eliminates the black box around the characters, placing a 2-dot black shadow to the right and below the character luminance dots when the 15 scan line per row mode is active. This display mode is usable in Captions, Text, and
Video Timing
Timing signals are derived from the VCO for use in the line counting and display circuits. Line counting requires proper identification of the input signal's vertical pulse. Default operation uses the vertical sync signal derived from the video input signal as the source for vertical lock. This method results in locking characteristics having good performance and good noise immunity. In the event that OSD operation is required under conditions when no input video is present, it would be necessary to set the Z86229 for VIN lock. In this mode, the vertical timing is determined from the vertical pulse signal supplied to the VIN pin. The horizontal position of the caption display is determined by the internal timing circuits. A default condition has been
TG F QEG & &%% GPK . % 56 0 <
;4#0+/+.'42
5 &
OSD displays. Figure 5 illustrates the characters with a drop-shadow added.
Extended Features
The EIA-608 specification has defined new extended features such as optional Background and Foreground display attributes and optional Extended Characters. The Z86229 always responds to the Extended Characters, but the Extended Background/Foreground response can be controlled by the user. The Background and Foreground attributes add codes for background colors, black and transparent foreground, opaque, and semi-transparent backgrounds. The BOX signal output pin is set to a tri-state condition whenever one of the semi-transparent attribute codes is active. The external keying circuits can then use this condition to implement the intended video display. The font for the Extended Characters are illustrated in Figure 6. The accented capital letters have been implemented by placing the accent marks above the character cell. When selected, this mode results in the accent marks being written into the character cell space of the row above. In some operating modes, the Z86229 expands the size of the overall box height by adding two additional scan lines at the top and one additional line at the bottom. There is now room for the accent marks in the topmost row and an added black
5 &
;4#0+/+.'42
FGWPKVPQ%
01+62+4%5'& .#01+6%07( <
T G FQ EG & &%% G PK. % 56 0 <
ZiLOG
line below the descenders of any lowercase characters in the last row. This approach is desirable because shrinking the capitals to make room for the accent mark within the character cell makes poor quality characters. In some cases, there would be no differentiation between the capital and lower case letter. Extended characters also have the advantage of minimizing the ROM size and providing a good readable font that closely matches what is normally seen in print. In the unlikely case of a conflict between an accented capital letter in one row and a lower case descender in the same character position in the row above, the descender is given priority. The improved readability of this approach over shrunk capital letters far outweighs this potential conflict and results in a cost-effective compromise for providing a full, extended features implementation. The Extended Characters share their address space with the OSD Graphics Characters. When a BOX display is used, the Extended Character set is in force; however, if a Drop Shadow display is used, the Graphics Characters are in force. For Caption and Text display modes, if the Drop Shadow is set, the user must also command the Z86229 to switch back to Extended Characters.
;4#0+/+.'42
5 &
TG F QEG & &%% GPK . % 56 0 <
ZiLOG
Figure 4. Z86229 Standard Character Map and Font
5 &
;4#0+/+.'42
Figure 5. Caption Display Mode, Drop Shadow
FGWPKVPQ%
01+62+4%5'& .#01+6%07( <
ZiLOG
T G FQ EG & &%% G PK. % 56 0 <
;4#0+/+.'42
5 &
TG F QEG & &%% GPK . % 56 0 <
ZiLOG
Figure 6. Extended Characters Font
Text Mode Display
When the Text mode is selected, a black box is displayed as long as a valid Line 21 code in the specified field is being detected. The Z86229 provides the option to make the box blue instead of black. This option holds for captions and text. The default Text display mode uses a 15 row by 34 character black box. Text characters are displayed as they are received starting at the top row. Successive carriage returns move the display down successive rows until all 15 rows have been displayed. Thereafter, the text scrolls up as new characters are added to the bottom row. If the data for the selected channel is interrupted by a command for another channel, data processing stops; however, the display remains. When a Resume Text command is received, data processing resumes and the new characters are added.
Note: The data processing begins at the position that the display
row/column pointer was in at the interruption of data processing.
If a Start Text command is received, the display is cleared, and the new characters are displayed starting in row 1, column 1 (left side). The number of display rows and the location (base row) of the Text box can be altered by the user. In this way, the user can decide how much of the screen can be covered when displaying non-program related information. When scrolling, the display shifts one scan line per frame until a complete row has been scrolled. If a carriage return is received before scrolling is complete, the display immediately completes the "scroll" by jumping up the remaining scan lines and starting the display of the new text.
Caption Display Mode
According to FCC specifications, caption data can appear in any of the 15 display rows, but a single caption may consist of no more than 4 rows. The form of the caption display depends on the caption mode indicated by the transmitted caption command, Pop-on, Paint-on, or Roll-up. The Z86229 can display a single caption having as many as eight rows. When any of the caption display modes are selected, the screen becomes transparent
Note: Display box is only present when a caption is being dis-
played.
5 &
;4#0+/+.'42
FGWPKVPQ%
01+62+4%5'& .#01+6%07( <
T G FQ EG & &%% G PK. % 56 0 <
XDS Display Modes
ZiLOG
Pop-on captions work with two caption memories. One of them is normally displayed while the other is being used to accumulate new caption data. A new caption is popped-on by swapping the two memories with the End Of Caption (EOC) command. When the on-screen memory is erased, the screen is blank (transparent), and the memory defaults to the row/column pointer at row 1, column 1, and monochrome are non-underlined. When caption mode is selected, the decoder processes data following the Resume Caption Loading (RCL) command (or the EOC). Normally, this command is followed by a Preamble Address Code (PAC) to indicate the row, column, and character attributes to be used with the following data. If no PAC is received, the data is added to the location most recently indicated by the row/column pointer prior to the receipt of the RCL command. The Paint-on caption mode is essentially equivalent to the Pop-on mode; however, the data received after the Resume Direct Captioning (RDC) command is written to the onscreen memory rather than the off-screen memory. All the rules for PACs, Midcodes, and so on, are otherwise the same. The Roll-up caption mode presents a "text" like display that is limited to 2, 3, or 4 rows, depending on the Resume Rollup (RUn) command used. The PAC following the RUn command is used as the BASE ROW for the ROLL-UP display. The BASE ROW is the "bottom" row of the ROLLUP display. In this case, the black box does not appear until characters are being displayed, and the Box is only wide enough to provide a leading and trailing box in each line. The new data appears in the bottom row, and as each carriage return is received, the row scrolls up and the new data is added to the bottom. When the number of rows indicated by the Resume command have been reached, the data in the top row scrolls off as new data is added to the bottom. The TAB (INDENT) PAC permits placing captions starting at 4 character boundaries in any caption row. The TAB OFFSET command provides the means for adjusting the starting position for a caption at any column position in the current row.
Two preprogrammed XDS display modes are provided. One provides information about the current program that would be of interest for "channel grazing". The second display shows the grazing packets, plus additional XDS packets which informs the viewer about the program content. Information is displayed as it is received. The displays use a drop-shadow mode with 15 scan lines per row.
ZiLOG
The XDSG mode is the GRAZE (channel grazing) display (Figure 7). The display contains three rows of information at the top of the screen that have been formatted for easy reading. They contain the following XDS packet information:
When an XDS display mode has been selected, the information is displayed as the appropriate packets are received. The display remains on-screen as long as valid XDS data continues to be received. If the 16-Second Erase Timer is enabled (the default condition), the XDS display is erased when no valid XDS data has been received for 16 Seconds. If subsequent XDS data is received with displayable packets, that information reappears on the screen. XDS data recovery can be active in the XDS display mode.
OSD Row 1 OSD Row 2
OSD Row 1
OSD Row 2
Network Name Program Name Program Length
Call Letters Time in Show
Network Name Program Name Program Length
OSD Row 3
OSD Row 3 Program Description information goes here on OSD rows 10, 11 12 and, 13
Figure 7. XDSG (Graze) Mode Sample Display
Figure 8. XDSF Mode Sample Display
The XDSF mode is the FULL (information) display (Figure 8). This display shows the same information as the GRAZE display; however, this display adds the program type as well the first four program description rows (if transmitted). Although XDS defines eight program description rows, the first four are identified as containing the most important information. The display of Program Description is limited to the first four rows. This limitation occurs because: 1. Eight rows would obscure much of the screen. 2. More than four rows are not likely to be sent due to the time required for transmission. Because 15 scan lines per row mode are being used, rows 10-13 appear at the bottom of the screen.
The XDS display mode is turned off by selecting a different display mode.
Display Erase and Autoblanking
The display is erased in the Text mode by the Start Text command (but the box is maintained) and in the CAPTION mode by the Erase Displayed Memory (EDM) command. The non-displayed memory can be erased by the Erase Nondisplayed Memory (ENM) command. Four other events can also cause the display to be erased. 1. The first action is a change in the display mode, such as from CC1 to T1 or CC1 to XDSF. A change in display mode clears the memory and the display. 2. A loss of video lock, such as on a channel change, can cause the screen to be cleared. The current active display mode is not changed. For example, if CC1 is selected and ON before the channel change, the device will remain in the CC1/ON state after the channel change. 3. The third action that clears the displayed memory is when the autoblanking circuit is activated. The autoblanking circuit monitors the presence of a Line
TG F QEG & &%% GPK . % 56 0 <
Call Letters Time in Show
;4#0+/+.'42
P C [ % Y Q J 5 P + G OK 6 J V I P G . O C T I Q T 2 Y Q 4 & 5 1 G VK J 9 G P K N T G F P 7 U E K N C V + G O C 0 O C T I Q T 2 Y Q 4 & 5 1 PGG T ) U TGV VG. NNC% G O C 0 MT QY VG 0 Y Q 4 & 51 Y Q N N G ; Y Q 4 P QK V R K T E U G & O C T I Q T 2 Y Q N N G ; Y Q 4 P QK V R K T E U G & O C T I Q T 2 Y Q N N G ; Y Q 4 P QK V R K T E U G & O C T I Q T 2 Y Q N N G ; Y Q 4 P QK V R K T E U G & O C T I Q T 2 PC [ % Y Q J 5 P+ G O K 6 G R [ 6 O C T I Q T 2 JV I P G . O CT I Q T 2 G VK J9 G PKN TG FP 7 UEKN C V+ G O C0 O CT I Q T 2 PGG T ) U TGV VG. NNC % GOC 0 M TQ YVG 0 5 & Y Q 4 &5 1 Y Q 4 &5 1 Y Q 4 &5 1 Y Q 4 &5 1 Y Q 4 &5 1 Y Q 4 &5 1 Y Q 4 &5 1
21 waveform in the video field corresponding to the data channel selected for display. The decoder is held in the Decoder OFF (TV) state until a Line 21 waveform is continuously detected for a period of 0.5 seconds. After a valid Line 21 waveform has been detected for 0.5 seconds, and assuming that the user has selected the Decoder ON state, the normal display for the data channel selected is presented. The autoblanking circuit is not activated again until a valid Line 21 waveform has been lost for 1.5 seconds. Any data received during the 1.5-second period resets the counter. As a result, autoblanking is only activated on continuous loss of the Line 21 waveform for 1.5 seconds.
5 &
;4#0+/+.'42
FGWPKVPQ%
01+62+4%5'& .#01+6%07( <
T G FQ EG & &%% G PK. % 56 0 <
ZiLOG
Note: A valid Line 21 waveform is defined as the presence of a
7-cycle run-in clock, in addition to a start bit on Line 21 of the field being examined.
4. The fourth method of clearing the screen is by the action of the 16-Second Erase Timer. This function is only active when a CAPTION or XDS display mode has been selected. If no data is received for the display channel selected for a 16-Second period, the on-screen memory is erased; however, the decoder is still on the selected channel (with the decoder ON), allowing data for the selected channel to be displayed.
ZiLOG
Z86229 FEATURE SET
The primary features of the Z86229 are summarized below. More complete descriptions can be found in later sections of this document. supplied through its serial port. This condition is referred to as On-Screen Display (OSD) mode. This mode provides:
* * * * *
VBI Data Processing
The Z86229 extracts Line 21 data from the incoming video signal. All data channels in both video fields are supported. Incorporating the VBI decoding feature, the Z86229 can perform the following:
Programmable Full Screen OSD: 15 display rows by 32 character columns Graphics characters Double-High and Double-Wide characters Fully programmable display positioning (information may be placed anywhere on the screen) Accepts externally supplied (or internally generated VSYNC to enable OSD even when no video is present)
* * * *
Process data from both fields of Line 21 simultaneously Output XDS data through the serial port while displaying selected data Output XDS data through the serial port raw or filtered Select XDS filters from a list of pre-programmed values including Program Rating and Time of Day/Local Time Select NTSC or PAL operation
Character Set
The Z86229 has a new character set with extended features, such as:
*
* *
New font with descenders on lower case letters Optional display mode using the drop-shadow font (in other words, fringing appears on each character rather than a solid, "black box" background) EIA-608 Extended Characters EIA-608 Background and Foreground attributes Special framing and graphics characters for OSD display Double-High and Double-Wide character display for OSD Fifteen scan lines per character row for OSD and Text
The video data extracted from Line 21 may be displayed in different ways according to the user selection and the type of data. Display choices include:
*
Ten different Line 21 data-display modes; CC1-CC4 and T1-T4, plus two standard templates for XDS displays Pop-on, Paint-on, and Roll-up CAPTION displays Text display default as a full screen, 15 row display User can vertically reduce and reposition the Text display as required Color or Monochrome display mode selectable XDSG Display Mode (channel grazing): automatic display of Network Name, Call Letters, Program Name, Program Length, and Time In Show data packets XDSF Display Mode (full information): automatic display of XDSG Display Mode information in addition to Program Type (only basic types) and Program Description
* * * * *
* * * * *
Note: Contact the nearest ZiLOG Sales office for additional in-
formation on how to define your own custom OSD character set.
Serial Communications Interface
Communications and control of the Z86229 is possible through a serial control interface. Two Serial Control Modes are available with the Z86229 performing as a slave device. These modes are: 1. A two wire, I2C interface. 2. A three wire, Serial Peripheral Interface (SPI). A total of five device pins are dedicated to the serial control port function. These pins are indicated in Table 7.
*
General Purpose OSD Modes
Apart from displaying data extracted from Line 21 of the incoming video, the Z86229 can also display information
TG F QEG & &%% GPK . % 56 0 <
;4#0+/+.'42
5 &
Table 7. Z86229 Serial Control Signals
Notes: SMS = Serial Mode Select High = SPI and Low = I2C. SCK = Serial port clock for either Serial Mode. SDA = Serial port data for I2C Mode and Data In for SPI Mode. SDO = Serial Data Out for SPI Mode. Not used in I2C Mode. SEN = SPI Mode Enable signal. Must be High for I2C Mode.
I2C Mode. The I2C port on the Z86229 always acts as a slave
device. I2C Mode is selected by bringing the SMS pin Low and the SEN pin High. SEN must remain High whenever I2C mode is required. If the SEN pin is brought Low, with the SMS also Low, the part is reset. SDA and SCK are the data and clock lines of the I2C port, respectively. During I2C mode operation, the V IN/INTRO signal (pin 13), can be configured to generate interrupt requests to the master device on selected events (see Note paragraph page 22).
SPI Mode. SPI Mode is selected by making the SMS pin
High. In SPI mode, the Z86229 acts as a slave device. All communications are clocked in and out as 8-bit bytes. SCK is the serial clock (input), SDA is Data-In, and SDO is DataOut. The SEN pin enables communication when High. When Low, the SDO pin is tri-stated. When SEN is brought High, the part is synchronized and waiting for a Command. If SEN is tied High, the part can also be synchronized by a command string. During SPI mode operation, the VIN/INTRO signal (pin 13) can be configured to generate interrupt requests to the master device on selected events
Caution: When the SEN and SMS pins are made Low simulta-
neously, the part is reset.
Interrupt Generation. The VIN/INTRO signal (pin 13) can
be configured to provide an interrupt output on selected events. The configuration of V IN/INTRO (pin 13) is user programmable to be either:
5 &
;4#0+/+.'42
GN D C P ' V W 1 C V C & P + C V C & #0 C VC & + 1 1+ 0 '5 1&5 #&5
FGWPKVPQ%
T G FQ EG & &%% G PK. % 56 0 <
6'5 '476#'( <
ZiLOG
1. An INPUT pin for acceptance of an external VSYNC timing signal. 2. An OUTPUT pin for interrupt generation on selected events.
Note: Configuring VIN/INTRO as an output for interrupt gener-
-. % -. % + -% 5
+ 5/ 5
+25 %+ 1+ PK 2 N C P IK 5
ation is particularly useful when implementing the Program Blocking feature with the Z86229 in TVs and VCRs. In this configuration, Pin 13 is used to interrupt the host processor when the XDS Program Rating data packet is found. As a result, the host processor is not burdened with monitoring or filtering the line 21 data stream. The Z86229 filters the Line 21 data stream for the host processor, and generates an interrupt only when the required packet is found.
Setup and Operational Control
The Z86229 is extremely flexible and fully programmable through its serial communication port. The following tables provide a partial list of User-Programmable Features, User Selectable Display Modes, and Default Conditions upon Reset.
Z86229 Programmable Features
* * * * * * * * * * * *
Decoder ON/OFF TV scan lines per OSD row (13 or 15 lines) EIA-608 extended attributes ON/OFF OSD drop shadow ON/OFF Color/Monochrome OSD Horizontal start position Text box size (# of rows) Text box starting row position NTSC or PAL Vertical Lock Source: Video or External VIN XDS Data Output, Raw or Filtered H-lock Source: Video or External HIN
In addition to the programmable features just listed, the Z86229 offers a choice of eleven display modes for user selection.
;4#0+/+.'42
5 &
0+
Y Q T U G PKN Y Q FC J 5 R Q T & [ CN R UK & & 5 1 T QNQ % Q P Q / T Q N Q % Q G FK 8 M E Q . N C V P Q \K T Q * F GN D C UK & 1 4 6 0 + 1 4 6 0+ 8 QG FK 8 M EQ . NCEK VT G 8 EGUz I PKOK6 :1$ Q G FK 8 ME Q. 1 % 8 (( 1 UV W RV W 1 CV C & % 56 0 F T C F P C V 5 Q G FK 8 (( 1 UV W RV W 1 CV C & 0 1 U GV W D K T V V # F G F P G V Z ' # + ' :1 $ FP W Q TI MEC$ Y Q 4 U G P K . UY Q T G\K 5 VZG6 (( 1 TG F QEG & % % N G P P C J % [ C N R UK & P QK VKF P Q% V GU G 4 TGV GOC TC2
Table 9. RESET Default Conditions
TG F QEG & &%% GPK . % 56 0 <
ZiLOG
Notes: 1. In NTSC-interlaced mode, there are two fields, or horizontal pixel-display lines, exhibiting alternate refreshes to the display. 2. Language I refers to synchronous captioning, and language II refers to supplementary captioning.
# 0 # 0 # 0 ++ + ++ + ++ + ++
GICWIPC.
#0 FNGK( % 56 0
+
V T Q 2 N CK T G 5 CK X F G PK H G & T G U 7 &5 1 5&: )5&: 5&: (5&: VZG6 . 6 VZG6 . 6 VZG6 . 6 VZG6 . 6 U P QK V R C % F GU QN% . %% U P QK V R C % F GU QN% . %% U P QK V R C % F GU QN% . %% U P QK V R C % F GU QN% . %% C VC & GF Q / [ CN R UK & [ CN R UK &
Table 8. Z86229 Display Modes
The Z86229 is initialized on RESET to the following default conditions:
When the Vertical Lock = VIDEO, the VIN/INTRO (pin13) is configured as an output, providing the INTRO signal. This interrupt operation is available in either serial control mode. The Z86229 is able to generate an interrupt on the occurrence of any set of specified events. The master device clears the interrupt by writing to the Interrupt Request Register.
Note: *When the SMS and SEN pins are both Low, the part is in the Reset state. Therefore, the SEN pin can be used to reset the part while in the I2C mode. The SEN pin may be tied to a NReset signal or tied High if no reset is required. The I2C Address is selected by pin 1 input. When pin 1 input is Low(0), it selects the 1st address. When pin 1 input is High(1), it selects the second address.
5 &
;4#0+/+.'42
J # J ' 6+ 4 9
J $ J & #' 4
T G FQ EG & &%% G PK. % 56 0 <
SERIAL COMMUNICATIONS INTERFACE
Commands and data are sent to and from the Z86229 through its serial communications interface. Two Serial Control Modes are available. One mode is a two wire I2C bus interface. The other serial mode is a three wire, synchronous serial peripheral interface (SPI). In both cases, the Z86229 acts as a slave device. The serial communications port is the path for setting the configuration and operational modes of the device. It is also the port for outputting the recovered XDS data and for inputting the OSD data for display.
ZiLOG
The I2C Bus Protocol
Under the I2C bus protocol, the following conditions must be present: 1. Data transfer can only be started when the bus is not busy. 2. During data transfer, data transitions must not occur while the clock is High.
Bus Conditions are Defined as:
Not Busy. Data and Clock lines are both High. Start. A High to Low transition of an SDA line while the SCK line is High. Stop. A Low to High transition of an SDA line while the
SCK line is High.
Acknowledge. When addressed, the receiving device must
I2C Bus Operation
The serial control mode in use is selected by the state of the SMS pin. When SMS is set Low, the Z86229 is in the I2C mode. In this mode, the Z86229 also supports a bidirectional two wire bus and data transmission protocol. The bus is controlled by the master device, which generates the serial clock (SCK), controls the bus access, and generates the Start and Stop conditions. The SDA pin is the bidirectional data line. In this mode, the SDO output is not used, and the pin is in its high-impedance state. The Z86229 can receive or transmit data under the control of a master device. Remember that the Z86229 is a slave device. Communication is initiated when the master device sends the start condition followed by the Z86229 Slave Address Read byte (29h or 2Bh) or Slave Address Write byte (28h or 2Ah). The Z86229 responds with an Acknowledge. The I2C RD/nWR bit is the Least Significant Bit (LSB) of the I2C addresses (Table 10).
Table 10. Z8612 I2C Slave Addresses*
output an acknowledge after the reception of each byte. The master device must generate the clock for the acknowledge bit. Acknowledge is SDA=Low. A Not ACKnowledge result (NACK) is SDA=High.
Data. The data (SDA) is output by the transmitting device on the falling edge of SCK, MSB first. The receiving device reads the data, MSB first, on the rising edge of SCK.
Communication with the Z86229 is initiated when the master device sends the Z86229 slave address following a start condition. The Z86229 has a single preset, consisting of a seven-bit slave address. The Z86229 responds with an acknowledge. The eighth bit of the slave address is driven High for Read operations and Low for Write operations.
Writing to the I2C Bus
All write commands are either one- or two-byte commands. The Z86229 is enabled when a Start condition, followed by its Slave Address Write byte, is received. The Start condition is disabled when it deems the command to have been completed, or when a Stop condition occurs. A new Start condition without a Stop condition begins a new sequence. Therefore, successive commands may be executed by successive strings of "Start--Slave Address--Command" sequences without any intervening Stop condition being sent.
Note: The number of data bytes to be received by the Z86229 is
UUGTFF# %+ FP UUGTFF# %+ VU
inherent in the command. The Z86229 responds with the acknowledge signal only for the number of bytes expected. If the master writes more bytes than expected, there is no acknowledge for the extra bytes.
ZiLOG
A write command to the Z86229 should always be preceded by executing a Status read to verify that the Z86229 is not busy. The Status register data is output immediately following the reception of the Slave Address Read. If the RDY bit is set, the master device can initiate its write sequence, always beginning with the Start condition. The first byte of a two-byte command is always written first. An example of the master's sequence for writing a two-byte command (after RDY had been checked) would be:
Start Slave Address Write/Slave ACK CMD (master)/ Slave ACK DATA (master)/Slave ACK Stop
Caution: If the DAV bit is not set, the I2C master device should
not attempt to read any data bytes. Attempting to read data bytes from the I2C master device may cause a loss of data from the Z86229 output registers.
The number of data bytes available is indicated by the state of the RD2 bit of the serial status. In a typical read operation, the status byte is read, and the DAV and RD2 bits are examined. If one or two data bytes are available, the data is read in sequence, separated by acknowledges.
Note: In all I2C Read operations (one, two, and three byte as de-
I2CTwo-Byte Write (Command & Data)
STRT SLAVE ADDR (WRITE=28h) WRITE CMD WRITE DATA STOP
I2C One-Byte Write (Command)
STRT SLAVE ADDR (WRITE=28h) WRITE CMD STOP
fined in Figure 10) the most recent byte read from the Z86229 should be acknowledged by the master with a NACK (Not ACKnowledge). It is also necessary to read all available data in a read operation to clear the DAV bit and permit subsequent reads. The DAV is cleared by the master clocking out of the eighth bit of the most recent data-byte read. The DAV is never cleared by just reading the SSB (one-byte read) alone. All data is first output as MSB.
The slave's sequence for reading two data bytes (total of three bytes including SSB) from the Z86229 is given as:
Start Slave Address Read/Slave ACK SS Byte/Master ACK Byte (slave)/Master ACK Byte (slave)/Master NACK Stop
Note: A Status Register RDY bit must be read and checked prior to
the STRT condition of either WRITE sequence above. See the OneByte Read (Status Only) in Figure 10 for more information on reading the Status Register.
Figure 9. I2C Bus WRITE (Command)
Reading Data Using the I2C Bus
With the exception of the Serial Status (SS) register, which may be read at any time, each read operation must be set up before the data can be read from the serial output registers of the Z86229. Data is set up for a read operation either automatically or manually. The XDS data reads are set up automatically upon recovery by setting a valid XDS FILTER register selection. All other data read operations must be set up manually using the READ SELECT commands RDS1 and RDS2. These commands load the selected data byte or pair of bytes into the serial output register(s), setting the SS register RD2 bit according to the number of data bytes requested. The SS register DAV bit is also set at that time to indicate the availability of data. The Z86229 I2C Bus supports one-, two-, and three-byte read sequences. All read sequences output the SS register as the first output byte. If the serial status DAV bit is set, a two or three byte read sequence can then be initiated, beginning with a new STRT condition.
I2C One-Byte Read (Status Only)
STRT SLAVE ADDR (READ=29h) SERIAL STATUS (SSB) STOP NACK
I2C Two-Byte Read (Status & Data1)
STRT SLAVE ADDR (READ=29h) SERIAL STATUS (SSB) READ DATA1 STOP NACK
I2C Three-Byte Read (Status, Data1, & Data2)
STRT SLAVE ADDR (READ=29h) SERIAL STATUS (SSB) NACK READ DATA1 READ DATA2 STOP
Note: In all I C Read operations defined herein, the last byte read from the Z86229 must be acknowledged by the master with a NACK (Not ACKnowledge).
2
Figure 10. I2C Bus READ (Command)
TG F QEG & &%% GPK . % 56 0 <
;4#0+/+.'42
5 &
Clock and Data Transitions. The SCK and SDA bus lines
are normally pulled High with a resistor. Data on the SDA bus may only change during SCK Low time periods. Data changes during SCK High periods indicate a start or stop condition (Table 11) defined as:
Start Condition. A High-to-Low transition of SDA, with a SCK
High as a start condition which must precede any other command.
Stop Condition. A Low-to-High transition of SDA, with a SCK tHD.STA SDA (IN)
High as a stop condition which terminates all communications.
Acknowledge. All address and data words are serially transmitted
to and from the Z86229 in eight-bit words. The instance of a ninth bit generates an acknowledge. The device acknowledges the data by pulling the SDA bus Low during the ninth bit. A Not ACKnowledge (NACK) is given by SDA=High during the ninth clock time.
Table 11. I2C Serial Timing Min/Max
SPI Bus Operation
When the SMS pin is High, the Z86229 is in the SPI serial control mode. The clock line should be tied to the SCK pin. The DATA IN signal and DATA OUT signal from the master device should be connected to the SDA and SDO pins, respectively. The SEN pin is used to select the Z86229 when there are multiple peripherals on the bus. As noted above, when both the SMS and SEN pins are Low, the part is in the RESET state. When the SPI bus is used in a dedicated fashion between the master and the Z86229, both the SEN and SMS pins would be tied High. The RESET
function would require that both of these pins be tied to the NReset signal. To ensure synchronization, the master device should send the serial synchronization signal after the reset is released. When the SPI mode is used in a multiple peripheral environment, the SEN pin is used as the Z86229 enable signal. The SMS could then be used for the NReset signal as long as the reset was only applied while SEN is Low. In this case, there would be no requirement for the master device to send a serial synchronization string after reset if there was at least 100 ns between the end of the reset and the start of the port enable.
5 &
\*M U VK P 7
UP UP
UP
UP
ZC /

PK /
;4#0+/+.'42
FGWPKVPQ%
VP CV U PQ % GOK6 T GVNK( V W R P+ G OK 6 FN Q * V W 1 C V C & G OK 6 R W V G 5 R Q V 5 G OK 6 R W V G 5 P + C V C & G OK 6 FN Q * P + C V C & G O K 6 R W V G 5 V T CV 5 G OK 6 FN Q * V T C V 5 GOK6 GG T( U W$ FKN C 8 V W1 C VC & Q V Y Q. ME QN% G OK 6 NN C ( . % 5 F P C # & 5 G OK 6 G UK 4 . % 5 F P C # & 5 J I K * J V F K 9 G UN W 2 M E Q N % Y Q . J V FK 9 G UN W 2 M E QN % [ E P G W S G T ( M E QN % T GV G O CT C 2
'%#(4'60+ 501+6#%+07//1% .#+4'5
+V *&V 16575V 6#&75V 6#&&*V #6575V #65&*V (7$V ##V (V 4V JIK*V 91.V -%5H N Q D O[ 5
T G FQ EG & &%% G PK. % 56 0 <
tF SCK tSU.STA tHD.DAT tHigh tLow tR tSU.DAT tAA SDA (OUT) tDH
ZiLOG
tSU.STO
tBUF
Figure 11. I2C Serial Timing
U U U U U U U U U
ZiLOG
A command string can be interrupted at any time. The port is resynchronized by sending the Serial Sync signal or by activating the rising edge of SEN. The SPI bus is a three-wire bus when used in a dedicated manner between the Z86229 and the master device. If other peripherals are connected to the bus, then the SEN pin must be used to place this device on the bus at the appropriate time. When SEN is Low, the SDO pin becomes tri-stated, transitioning on the SCK and SDA pins, which, as a result, are ignored. If data output is not required from the Z86229, then control can be accomplished using only the SCK and SDA pins. Because this type of operation precludes the ability to check the RDY bit, it is very important that commands be spaced by at least two frames (66 msec) to ensure that one command has been executed before initiating another. The bus is controlled by the master device, which generates the serial clock (SCK) and initiates all actions. Clocking data in on the SDA simultaneously produces a data out on the SDO. The master should always check for the appropriate handshake signal before executing any command other than a NOP. Writing to the part requires that the RDY bit be set, while reading from the part requires checking the SS register to see if the DAV bit is set. Both of these bits are contained in the Serial Status (SS) register. Writing to the Z86229 concurrently outputs the contents of the SS register, MSB first, unless other data is being output as a result of one of the READ commands. If it is required to read the SS without executing a command, the NOP command can be written at any time, even if the serial status RDY bit is not set. The RDY status bit is driven onto the SDO pin between command transmissions. The controlling MCU can test the state of this pin, without clocking, in order to determine if subsequent serial transfers are possible. The DAV bit can only be checked by outputting the contents of the SS register.
Writing to the SPI Bus
The command and data bytes are written MSB first. Typically, the first byte of a two-byte command is sent first. The bits are clocked into the Z86229 by placing the data on the SDA input and bringing the SCK High.
Reading Data Using the SPI Bus
With the exception of the SS read, each read operation must be set up before the data can actually be read from the serial output registers of the device. Data is set up for a read operation either automatically or manually. The XDS data is set up for a READ automatically upon recovery by setting a valid XDS FILTER register selection. All other data read operations must be set up manually, using the READ SELECT commands RDS1 and RDS2. These commands load the selected data byte( or pair of bytes) into the serial output registers, set the SS register RD2 bit according to the number of data bytes requested, and set the serial status DAV bit to indicate the availability of data. The Z86229 SPI Bus supports two and three byte read sequences. In SPI mode, the SS must be read before a read sequence is started, so that the DAV and RD2 bits can be checked. The number of data bytes available is indicated by the state of the RD2 bit. The special command, READ1 or READ2, is then used to read the one or two available data bytes. The serial status is clocked out during the write of the READ1 or READ2 command. The data byte or bytes are then clocked-out in sequence, MSB first, while the NOP commands are written into the device. Data bits are clockedout on the rising edge of SCK. All available data bytes must be read to clear the DAV bit and permit subsequent reads.
The SPI Bus Protocol
All write commands are either one or two-byte commands. The number of data bytes to be received by the Z86229 is inherent in the command. If the master device writes more bytes than expected, the command may be overwritten or corrupted by the extraneous bytes. A write to the Z86229 should always be preceded by executing a Status read to verify that the device is ready. The serial status is output by the device, concurrent with the input of any command byte. If the RDY bit of the serial status register is set, the master device can write a new command.
The SPI Bus Protocol is defined as follows: 1. The first bit of the first output byte is driven out on the SDO. This action is followed by the rising edge of SCK on the last bit (LSB) of the READ1 or READ2 command. 2. A three-wire bus is defined with a Clock signal on the SCK pin, a Serial Data Input on the SDA pin, and a Serial Data Output on the SDO pin. 3. The SEN pin Low disables the port, placing the SDO pin in a tri-state. Signal transitions on SCK and SDA are ignored. 4. The SEN pin High enables the port for operation. 5. The SEN and SMS pins Low indicate a hardware reset for the part. These pins must be held Low for at least 100 ns. 6. Serial synchronization can be established by clocking in the minimum required SSR string of FFh, FFh, FEh. More than two bytes of FFh may be input, but the string must end with FEh.
TG F QEG & &%% GPK . % 56 0 <
;4#0+/+.'42
5 &
The majority of the Z86229 commands are common to both the I2C and SPI modes. In the I2C mode, the commands must be contained within the specified sequence (Start--Slave Address--etc.).
Note: In the following Command descriptions, the letter "h" fol-
RESET = FBh, FCh, 00h. RESET is a three byte command sequence in SPI or I2C mode. The RESET command establishes all the specified default settings in the device, but it does not reset the serial port itself. This sequence can be entered without RDY being set.
Serial Sync Bytes
SSB = FFh,....,FFh,FEh. Serial Sync Bytes are used in SPI
mode only. This command actually consists of a string of single-byte commands in the form FFh,....FFh,FEh. SPI mode communications can be synchronized by sending a synchronizing data string to the part. This string should consist of at least two SSB bytes of FFh, followed by one SSB byte of FEh. At the end of the FEh byte, the port is ready for use.
Table 12. Basic Serial Commands
XDS Display Mode and 16-Second Erase Timer Commands
XDS DISP = 20h-27h. XDS Display commands are one-
byte commands. These commands control the selection of XDS display modes and the state of the 16-Second Erase Timer. The 16-Second Erase Timer is active only for caption and XDS display modes. The 16-Second Erase Timer has no affect on Text mode displays.
5 &
J # J $ J J J J J% J& J' J( J J J J ( ( 1 T G FQ EG & 01 TG F QEG & GF Q % F PC O O Q % :6 2 %
6 6 6 6 %% %% %% %% F PC O O Q % : 62 %
;4#0+/+.'42
[NPQ GFQO +25 J'( J(( J(( $55 %+ TQ +25 J 210 TQ +2 5 J J%( J$( 6'5'4 U G V Q 0 G F Q % F P C O O Q % F P C O O Q % N CK T G 5
%+
T G FQ EG & &%% G PK. % 56 0 <
COMMANDS Serial Port Commands Caption/Text Display Mode Commands
Bit CM7 CM6 0 R/W CM5 0 R/W CM4 1 R/W CM3
FLD
ZiLOG
CPTX = 10h-1Fh. These caption and text display-mode
commands are one-byte commands that select the Line 21 data stream (caption or text) for display.
CM2
CPTX
CM1
CM0
lowing a command code designates hexadecimal notation.
0 R/W
LANG DONOF
R/W
R/W
R/W
R/W
Reset
Figure 12. CPTX-Caption/Text Display (CPTX = 10h-1Fh)
A data channel can be selected for display with the display either enabled (DEC ON) or disabled (DEC OFF). All these commands turn off the active XDS display mode. Table 13 summarizes the device's caption and text display modes and the proper command code to activate them.
Table 13. Caption and Display Commands
No Operation
NOP = 00h. NOP is a one-byte command for use in SPI or
I2C mode. The NOP command does not affect the status of the RDY bit in the Serial Status (SS) register and can be executed independent of the RDY status.
ZiLOG Table 14. XDS Display Commands*
Note: For XDS data recovery, when the XDS Filter Register
(see Internal Register section) is enabled for the packets, the Z86229 automatically establishes the two-byte recovery mode, moving the recovered data bytes to the output register.
Reading Data From The Z86229
READ1 = F8h. This command reads one byte in the SPI mode. READ2 = F9h. This command reads two bytes in the SPI mode.
Note: *Changing the ON/OFF state of the 16-Second Erase Timer has no affect on the current display mode in operation.
Read And Write Commands
Read Selects. There are two Read Select commands
Bit 7 1 W 6 1 W 5 1 W 4 1 W 3 1 W 2 0 W 1 0 W 0 RD2 W
(RDS1 and RDS2) in the Z86229. Each command is one byte in size and indicates that a read should take place. RDS1 specifies that one byte is read from the Z86229; likewise, RDS2 indicates that two bytes are read.
RDS1 = 40h-47h. RDS1 is a one-byte command used to
Figure 15. READx-Read x Bytes (READ1/2 = F8h/F9h)
initiate a one-byte read sequence. This action is performed by moving the contents of the register identified by the address field (AD00:02) of the command to the output register. Addresses 0h-7h are valid in the RDS1 command field AD00:02.
The READx commands do not affect the status of the RDY bit in the Serial Status (SS) register, and can be executed independent of the RDY status. In both serial communications modes, the DAV bit in the SS register indicates when the data is available. When the RD2 bit is Low, the DAV is cleared on the rising edge of SCK at the LSB of the first data byte. When the RD2 bit is High, the DAV is cleared on the rising edge of SCK at the LSB of the second data byte. The RD2 bit is only valid if the DAV is High. Reading in the I2C mode is selected by the R/NW bit in the Slave Address byte. The first byte after the Slave Address byte is SS followed by the data in output buffers (A and B, respectively). If the instruction being executed is a one-byte read, then buffer A contains the read data and buffer B contains all ones.
Bit CM7 0 W
CM6 1 W
CM5 0 W
CM4 0 W
CM3 CM2
CM1
CM0
AD03 AD02 AD01 AD00 W W W W
Figure 13. RDS1-Read One Byte (RDS1 = 40h-47h)
RDS2 = 60h-66h. RDS2 is a one-byte command which is
used to initiate a two-byte read sequence. This action is performed by moving the contents of the two consecutive registers, starting with the one identified by the address portion of the command (AD00:AD02), to the output registers, setting the RD2 bit in the SS register. Only Addresses 0h-6h are valid in the RDS2 command field AD00:02.
Bit 7 0 W 6 1 W 5 1 W 4 0 W 3 0 W 2 1 0
Writing to the Z86229
WRxx = C0h-DFh
Bit
7 1 W
6 1 W
5 0 W
4 0 W
AD02 AD01 AD00 W W W
Figure 14. RSD2-Read Two Bytes (RDS2 = 60h-66h)
Figure 16. WRxx-Write Register xx (WRx = C0h-DFh)
TG F QEG & &%% GPK . % 56 0 <
;4#0+/+.'42 J J J J J J (( 1 01 TO6 EG 5 TO6 EG 5 G F Q% F P COO Q% [ CN R UK & 5 & :
3 0 W 2 1 0 AD02 AD01 AD00 W W W
T G OK 6 G U C T ' F P Q E G 5 (5&: )5&: F P C O O Q % [ CN R UK & 5 & : 5 &
5 &
;4#0+/+.'42
G V [ D P P G J V [ D F G V C P IK U G F U G O C T H H Q T G D O W P G J V [N G V C OK Z Q T R R C T Q H P QK V W E G Z G F P C O O Q E N CK T G U G J V I PK F P G R U W U 5 5 H Q VK D ; & 4 G J V U V G U F P C O O Q E UK J 6 JPP T G V E C T C J E G FK 9 GN D W Q & C U GK H K E G R U V W D F P C O O Q E # G J V U C G O C U G J V UK F P C O O Q E UK J 6 JFF Y Q T J IK * GN D W Q & C U G V C E K F P K T T H Q V K $ Y Q T G J V H Q [ C N R UK F U G N D C P G T T H Q VK $ G V [ D G J V H Q GN D DK P Y QN G J V [ D F G V C P IK U G F Y Q T [ CN R UK F G J V Q V Y Q T N C EK U [ J R V P G T T W E G J V U R C O F P C O O Q E UK J 6 JTT T Q U T W E G J V U V P G O G T E PK P G J V F P C P QK V C E QN T Q U T W E V P G T T W E G J V Q V F F G V [ D C V C F G J V U G VK T Y F P C O O Q E UK J 6 JFF G E C R U % # 2 G J V UK Q T G < P O W N Q E J Q V J O Q T H G WN C X [ P C G D P C E J EK J Y E E [ D F G V C P IK U G F P QK VK U Q R P O W N Q E T G V E C T C J E G J V V C T Q U T W E G J V U G E CN R F P C O O Q E UK J 6 J EE J ( Q V J O QT H G W N C X [ P C GD PCE YQT NCEKU[JR GJV UGVCPIKUGF HQ GNDDKP TGFTQ Y QN G J V G T G J Y Y Q T N C EK U [ J R G J V U V G U F P C O O Q E UK J 6 JTT J IK * GN D W Q & G G T J V Y Q T [ CN R U K F V E G N G U F N W Q Y J T T Y QT [ CNR UK F V EGNG U FNW QY J ' T T GN ROCZG T Q( Y Q T J IK * GN D W Q & C UGKHK EG RU H Q V K $ Y Q T [ C N R UK F G J V U G V C P I K U G F H Q GN D DK P T G F T Q Y QN G J 6 P O WN Q E T C J E Q V T Q U T W E G J V U G X Q O F P C Y Q T [ CN R UK F G J V U V G U F P C O O Q E UK J 6 JTT P QKVE P W( FP COO Q% GV[$ F PQ EG 5
rr rr rr rr rr
[TQOGO FG[CNRUKF PQP GUCTG HQ VPGNCXKWSG &51 [ T Q O G O F G [ CN R U K F G U C T G H Q V P G N C XK W S G & 5 1 % 1 ' P QK V R C E H Q F P G P QK V R C E P Q R Q R H Q V P GN C XK W S G & 5 1 [ CN R UK F & 5 1 H Q G R [ V P Q R Q R C U G J UKN D C V U ' [ C N R UK F & 5 1 H Q G R [ V V Z G 6 C U G J U K N D C V U ' 4 ' & Y Q T H Q F P G Q V G V G N G F H Q V P G N C XK W S G & 5 1 G F Q O 6 ' 5 6 : ' 6 PK P G J Y & 5 1 T Q H P T W V G T G I CK T T C % P QK V E P W ( F P C O O Q %
Figure 17 illustrates the two different character sets, Graphics or Extended, that share the address space C0h-FFh. The
OSD commands are one and two-byte commands. They are used to control the loading of data for OSD display and their
OSD Display Mode Commands
The WRITE commands require two bytes to execute. The first byte is the write command. This byte includes the Z86229 register address (AD00:04). The second byte is the data to be written.
Table 15. Single-Byte OSD Display Mode Commands
Table 16. Two-Byte OSD Display Mode Commands
Graphics Character set is in force when the OSD display is in Drop-Shadow mode (the default condition). presentation to the screen. Normally, the OSD display mode uses 15 TV lines per display row to enhance the screen appearance. The following tables summarize the single- and two-byte control commands for the Z86229 On-Screen Display.
ZiLOG
J # J # J # J # J # J #
6 +# 9 ' &+ 9 . $ & 4 # * % ' 6 + 4 9 2 # / '6 +4 9 4 # *% '6 +4 9 6 ' 5 4 1 5 4 7% . ' 5 91 4 5; * 2
J # GV[$ VU TK(
P QK V R 1 J IK * GN D W Q & J VK Y . ' 5 9 1 4 2 1 2 GOC 0 FP COO Q%
J J J J J J J G F Q%
/ 0' 1 / &' 1 2 +.( 6' 5 2 1 2 6 ' 5 6 : '6 '4 .% 0 4 76 ' 4 G OC 0 FP C O O Q %
FGWPKVPQ%
5&0#//1%
T G FQ EG & &%% G PK. % 56 0 <
ZiLOG
The two-byte commands (GRAPHICS and EXTENDED) above can be used to switch from the Graphics Characters to the Extended Characters and vice versa.
Note: An OSD screen can only use one set at a time.
Figure 17. Z86229 Graphics or Extended Character Set
TG F QEG & &%% GPK . % 56 0 <
;4#0+/+.'42
5 &
D1-FLD. This bit signals the current video field. Low = Field 2, High = Field 1. D2-ROVR. Active High, indicating that the data available
in the output buffer has not been read out and, new data has been written over it.
D3-INTR. Active High, indicating that an interrupt other
than DAV is pending.
D4-WOVR. Active High, indicating a serial input data over-
run has occurred.
D5-RD2. Signals the number of bytes available for output. D 0-TDRP. This bit selects Drop Shadow or Full Box in Text
Low = 1 byte, High = 2 bytes.
D6-DAV. Active High, indicating that data is available to
D7-RDY. Active High, indicating that the port input buffer is empty. Only the NOP, RESET, and READ instructions may be sent if RDY is Low. Configuration Register Address = 00h
Bit D7
res
5 &
;4#0+/+.'42
T G FQ EG & &%% G PK. % 56 0 <
INTERNAL REGISTERS
Information controlling the setup and operation of the Z86229 are maintained in several registers. The user may read or alter the contents of these registers as required.
Serial Status (SS) Register Address = Not Required
Bit D 7
RDY
ZiLOG
When PAL is selected, the display defaults to 15 TV scan lines per display row.
D 1-MONO. This bit selects monochrome operation. Active
D6
DAV
D5
RD2
D4
D3
D2
D1
D0 LOCK R
High indicates that the character luminance is output on all three color pins (RGB). The default is Low, selecting COLOR operation.
D 2-HLK. This bit selects the horizontal signal source to be
WOVR INTR ROVR FLD
R
R
R
R
R
R
R
Figure 18. Serial Status Register (Address not required)
used to lock the VCO (Low = Internal, High = HIN). The default is Internal.
D 3-VLK. This bit selects the vertical signal source to be used to establish a vertical sync lock (Low = Internal, High = V IN). The default is Internal. When the Internal lock is enabled, the VIN/INTRO pin defaults to the INTRO output mode. Interrupts should not be selected in the Interrupt Mask register if the VLK mode is used. D 4-D7. Reserved. Display Register Address = 01h
Bit D7
O15
D0-LOCK. Active High, indicating that the internal sync
circuits are locked. This bit may be used as an indication of the presence of a video signal.
D6
D5
D4
C15
D3
D2
D1
T15
D0
TDRP
ODRP CENH
CDRP TENH
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Figure 20. Display Register (Address = 01h)
mode (High = DROP SHADOW and Low = BOX). The default is Low.
D 1-T15. This bit selects the number of TV lines per char-
be read out.
acter row in a Text display (High = 15 lines/row and Low = 13 lines/row). The default is Low.
D 2-TENH. This bit enables Enhanced Attributes for a Text
display (High = Disabled, Low = Enabled). The default is Low.
D 3-CDRP. This bit selects Drop Shadow or Full Box in
D6
res
D5
res
D4
res
D3
VLK
D2
HLK
D1
MONO
D0
TVS
CAPTION mode (High = DROP SHADOW and Low = BOX). The default is Low.
D 4-C15. This bit selects the number of TV lines per char-
R/W
R/W
R/W
R/W
Figure 19. Configuration Register (Address = 00h)
acter row in a CAPTION display (High = 15 lines/row and Low = 13 lines/row). The default is Low.
D 5-CENH. This bit enables Enhanced Attributes for a CAP-
D0-TVS. This bit selects the television standard. High se-
lects PAL and Low selects NTSC. The default is NTSC.
TION display (High = Disabled, Low = Enabled). The default is Low.
ZiLOG
Note: OSD and XDS display modes always have Enhanced At-
tributes enabled.
D6-ODRP. This bit selects the Drop Shadow or Full Box mode in the OSD and XDS displays (High = DROP SHADOW and Low = BOX). The default is High. D7-O15. This bit selects the number of TV lines per char-
with a base row of 12, this register should be set to C8h. If the value of the x and y bits result in a display where Text rows are off the top of the screen, then the first row of the Text display starts in row 1, having the number of rows determined by the x value.
Line 21 Activity Register Address = 04h
Bit D7 D6
res
D5
res
D4
res
acter row in the OSD and XDS display modes (High = 15 lines/row and Low = 13 lines/row). The default is High.
H Position Register Address = 02h
Bit D7 D6 D5 D4 D3 D2 D1 D0
res
Figure 23. Line 21 Activity Register (Address = 04h)
BLUBX HPO
h5
R/W
h4
R/W
h3
R/W
h2
R/W
h1
R/W
h0
R/W
D 0-SCH. This bit indicates data being processed in the Data
R/W
R/W
Figure 21. H Position Register (Address = 02h)
Channel selected for display. The display becomes inactive if no data is received for the selected channel within the previous 16 seconds (High = Active, Low = Inactive). The reset state is Low.
D 1-XDS. This bit indicates that XDS data is being pro-
D0-D5-h0-h5. This bit is used to set the Horizontal Timing
of the display. The default value in this register is 26h. Each count change represents an incremental timing change of 330 ns. Decreasing the value of this field moves the display to the RIGHT. Conversely, increasing the value of this field moves the display to the LEFT.
D6-HPO. This bit sets the polarity to be used for locking to
cessed. The display becomes inactive if no XDS data is received within the previous 16 seconds (High = Active, Low = Inactive). The reset state is Low.
D 2-D7. Reserved. XDS Filter Register Address = 05h
Bit D7 D6 D5 D4
PUBL
the HIN signal when in the EXT HLK mode (Low = Rising Edge, High = Falling Edge). The default is Low.
D7-BLUBX. This bit designates the color of BOX (High =
s2
R/W
s1
R/W
s0
R/W
R/W
Blue Box and Low = Black Box). The default is Low.
Text Position Register Address = 03h
Bit D7 D6 D5 D4 D3 D2 D1 D0
Figure 24. XDS Filter Register (Address = 05h)
D 0-CURR. This bit selects the Current Class packets for
y3
R/W
y2
R/W
y1
R/W
y0
R/W
x3
R/W
x2
R/W
x1
R/W
x0
R/W
output through the Serial Control port when XDS recovery has been enabled.
D 1-FUTR. This bit selects the Future Class packets for output through the Serial Control port when XDS recovery has been enabled. D 2-CHAN. This bit selects the Channel Information Class
Figure 22. Text Position Register (Address = 03h)
D0-D3-x0-x3. This bit sets the Number Of Rows in the Text
display. The default is 15 rows.
D4-D7-y0-y3. This bit sets the Base Row of the Text dis-
packets for output through the Serial Control port when XDS recovery has been enabled.
D 3-MISC. This bit selects the Miscellaneous Class packets
play. The default value in this register is set to FFh, which produces a 15-row display with base row 15. Entering a new value in this register can alter the size and placement of the Text display. For example, to produce an 8-row Text display
for output through the Serial Control port when XDS recovery has been enabled.
TG F QEG & &%% GPK . % 56 0 <
D3
res
D2
res
D1
XDS
D0
SCH
R
R
D3
D2
D1
D0
MISC CHAN
FUTR CURR
R/W
R/W
R/W
R/W
;4#0+/+.'42
5 &
D4-PUBL. This bit selects Public Service Class packets for
output through the Serial Control port when XDS recovery has been enabled.
D5-D7-s0-s2. This bit selects a set of secondary parameters, tabulated below, to be used in filtering the XDS data when XDS recovery has been enabled. Table 17. XDS Secondary Filter Settings1
Notes: 1. Setting this register to 00h turns XDS data recovery off. Setting bits D 0 through D 4 enables XDS recovery for the classes selected, as qualified by the secondary filter (bits D5-D7). If bits D0-D4 are all set to "1", all classes of XDS data will be output, even the reserved and undefined classes. 2. The Time Information includes the Time of Day (TOD) and Local Time Zone (LTZ) packets. 3. The VCR Information selects TOD, LTZ, Net ID, Local Call Letters, Impulse Capture, Tape Delay, Composite 2, and Out-of-Band Channel Number packets for recovery.
Interrupt Request Register Address = 06h
Bit D7 D6 D5
dXDS
D4
dSCH
D3
dLOK
D2
EOF
D1
DLE
dTXT dCAP
R/W
R/W
R/W
R/W
R/W
R
Figure 25. Interrupt Request Register (Address = 06h)
D0-res. Reserved. D1-DLE. Active High, indicating that the data line has end-
ed. This bit clears in each field a few lines after row 15.
D2-EOF. Active High, indicating that the video signal is
currently at the end of a field. This bit clears in each field a few lines after row 15.
5 &
;4#0+/+.'42
J J J J J J J J U U G WNC 8 T GVNK(
FGWPKVPQ%
T G FQ EG & &%% G PK. % 56 0 <
54'65+)'4 .#04'60+
FGX TG UG 4 FGX TG UG 4 FGX TG UG 4 P QK V C O T Q H P+ 4 % 8 I PK V C 4 O C T I Q T 2 [N P 1 F P C $ P + P QK V C O T Q H P + G OK 6 NN # T G VNK ( [ T C F P Q E G 5
Interrupt Mask Register Address = 07h
D0
res
ZiLOG
D 3-dLOK. Active High, indicating that the state of the LOCK signal has changed. The SS register must be read to determine the current state. D 4-dSCH. Active High, indicating that a change in selected channel activity has occurred. The Line 21 Activity register must be read in order to determine if the selected data channel is active. D 5-dXDS. Active High, indicating that a change in XDS ac-
tivity has occurred. The Line 21 Activity register must be read to determine if XDS data is active.
D 5-dXDS. Active High, indicating that a change in XDS ac-
tivity has occurred. The Line 21 Activity register must be read to determine if XDS data is active.
D 6-dCAP. Active High, indicating that a change in a cap-
tion data channel activity has occurred. The Caption Activity Register (Address 08h) must be read to determine exactly which caption channels are now active.
D 7-dTXT. Active High, indicating that a change in a Text data channel activity has occurred. The Caption Activity Register (Address 08h) must be read to determine exactly which text channels are now active.
Note: Except as noted for the case of D1 and D2 above, the mas-
ter device must write a 1 to the appropriate bit in the Interrupt Request Register to clear the Interrupt. Writing a 1 to any valid bit position, the Interrupt Request Register is equivalent to CLEARing a interrupt request on that bit.
Bit D7
dTXT
D6
dCAP
D5
dXDS
D4
D3
D2
EOF
D1
DLE
D0
DAV
dSCH dLOK
R
R
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Figure 26. Interrupt Mask Register Address = 07h
This register identifies which activities in the Interrupt Request Register are used to cause an interrupt. Setting a bit to a 1 enables the interrupt when the corresponding event becomes active. Setting all bits of this register to zero disables interrupts. The Caption Activity Register Address = 08h.
ZiLOG Caption Activity Register Address = 08h
Bit D7
T4
D6
T3
D5
T2
D4
T1
D3
CC4
D2
CC3
D1
CC2
D0
CC1
bytes. The external TV control processor is not required to send a READ SELECT command in order to read these data bytes. When the XDS Filter register is set to 00h (the default state), XDS recovery is disabled.
Caution: When XDS data recovery is enabled, the external con-
R
R
R
R
R
R
R
R
Figure 27. Caption Activity Register (Address = 08h)
D0-D7-Activity Bits. These locations indicate the activity
bits for the Line 21 data channels CC1-T4. Each bit is set High when a mode setting command for its data channel has been received on Line 21. The bit is cleared to the Low state if no activity is detected in that data channel during the next 12-16 seconds or if there is a loss of lock.
XDS Data Recovery
The Z86229 is able to recover Extended Data Services (XDS) information from the input video signal. This data, formatted according to EIA-608 specification, can contain a wide variety of information about current and future programs, the channel currently tuned, other channels, and miscellaneous data including time of day.
Note: XDS data is only present in the even field.
troller should never perform any other read operation, except for SS reads in the beginning of field 2. This situation is most easily accomplished by using the end of field (EOF) or data line end (DLE) interrupt to locate the end of field 2 or the vertical blanking interval (VBI) of field 1. From that point, the controller can perform the READ SELECT and READ functions during this portion of the video frame. Commands other than READ SELECTS do not interfere with XDS data recovery regardless of their position in the video frame.
Some examples of the WRITE commands used to set the XDS Filter Register in the Z86229 are indicated in Table 18. The XDS Filter Register bit assignments are defined in the Z86229 Internal Register section of this specification (see page 30 for details).
Table 18. XDS Data Extraction-- Example Filter Settings
XDS data packets are tagged according to a Class/Type system defined by the EIA-608 specification. The Z86229 can be programmed to filter the XDS data stream to extract only the classes of interest to the application. An additional level of filtering is provided that permits selection of certain groups of packets that are useful in specific applications. XDS filtering not only reduces the traffic on the serial bus, but it also reduces the load of the TV/VCR control processor, thereby simplifying external XDS decoding. XDS data recovery is enabled by selecting one or more classes in the XDS Filter register. Optionally, a secondary filter code can be specified which further limits the packets to be recovered. When XDS recovery is enabled, filtered data pairs are loaded into the serial output registers of the Z86229 immediately upon receipt and in the order received. The DAV and RD2 bits of the Serial Status (SS) register then goes High, indicating the availability of two output
[TGX Q EGT T QH UVG MEC R T G D O W 0 NG P PC J% FP C$ H Q V W1 F PC G VK UQ RO Q% [ C N G & G R C 6 G T W V R C % G UN W R O + U TG VVG . NN C% NCE Q. &+ VG 0 <6. &16 U V E GN G 5 F G T G X Q E G T P Q K V C O T Q H P + 4 % 8 _( %] U 4 % 8 F P C U 8 6 P K U I PK V V G 5 M E Q N % Q V W # VPGOGNROK QV FGUW GD [CO TGVNKH UKJ6 CVC F UU CN% U W QG PCNN GE UK / G JV O Q T H U V G M E C R < 6 . G P Q < G O K 6 N C E Q . F PC & 16 [C & H Q GOK6 G J V UV EC TVZG T G VNK H UK J 6 F G T G X Q E G T P QK V C O T Q H PK G OK 6 _ %] F G T G X Q E G T U V G M E C R U U C N % V P GT T W % N N # _ %] FG TGX QE GT UV GMEC R 5 & : NN # _( %] [ TGX QEG T V GMEC R C VC F TQH FGUW GD [CO TGVNKH UKJ6 FG TGX QE GT U V G M E C R U U C N % V P G T T W % I PK V C 4 O C T I Q T 2 _ %] FG TGX QE GT U VGM EC R U UCN% VP GT T W% F P C$ P + NN# _ %] V W R V W 1 T G VNK ( 5 & : _ G F Q % T G VNK ( & / % G VKT 9]
The Z86229 can recover XDS data even while performing its normal caption decoder or OSD functions.
Blocking
TG F QEG & &%% GPK . % 56 0 <
Program
;4#0+/+.'42
5 &
Filtered XDS Data Format
Filtered XDS data is output from the Z86229 in the order it is received on Line 21. The XDS filter function is essentially creating a new, smaller stream of XDS data packets. This new data stream looks exactly as though the Class and Type specified in the XDS Filter Register (05h) are the only data encoded on Line 21 of field 2. The filtered data output from the Z86229 is in full compliance with EIA-608 specifications for XDS data streams (headers and control codes intact). See the Note paragraph in the next column for a special exception to this rule. XDS data and header information (including START, CONTINUE, and END commands) are passed through the filter for the XDS class and type specified in the XDS Filter Register. All other Line 21 data is filtered out. This data is neither output nor used to generate a data available flag (DAV) in the Serial Status Register. To properly read filtered XDS data from the Z86229, the master device must first write the XDS Filter Register (05h) with its required XDS Class and Type information. For example in Z86229, in order to extract ONLY the Line 21 Program Rating information, the master must write the value 61h to the XDS Filter Register. The master should then poll the state of the DAV bit in the SSR until DAV = 1. As soon as DAV=1, the master may initiate a 3-byte read in the normal manner (XDS data bytes always arrive in pairs, so it is safe to assume that RD2=1 when DAV=1 in the SSB). A 3-byte read always yields two data bytes, which in this case is the first two bytes of the Current Class, Program Rating Type XDS data stream encountered on Line21 field 2. The master device must then interpret those two
5 &
;4#0+/+.'42
FGWPKVPQ%
T G FQ EG & &%% G PK. % 56 0 <
54'65+)'4 .#04'60+
ZiLOG
bytes according to the EIA-608 specifications for Current Class, Program Rating Type data. Refer to EIA-608 for data formats. The XDS filters on the Z86229 greatly reduce the amount of field 2 data passed on to the master device for further processing and interpretation; however, the master device must still interpret the filtered data stream in accordance with EIA-608. The filtered data stream from the Z86229 is in full compliance with the EIA-608 specification. In other words, the filtered data stream contains all the XDS command and data packets, in standard EIA-608 format, but only for the selected XDS Class and Type(s).
Note: The Z86229 XDS filter for Program Rating information
behaves differently than all other Z86229 predefined XDS filters. This change has been made to minimize the amount of data passed through the Program Rating XDS filter, thereby minimizing the interpretation and communications load on the master device. When the XDS Filter Register is set to 61h (Class=01h (Current), Type=05h (Program Rating) is the only data from the Line 21 field 2 that passes through the filter. 1. Program Rating Packet: [xxh,xxh]. The Current Class Program Rating data byte pair as defined in EIA-608. The program's rating is encoded per EIA-608 in the xxh byte pair. 2. The END Packet [0Fh,CHKSUM]. A two-byte packet that includes a CHKSUM computed per EIA-608. The checksum calculation includes the START packet [01h,05h], even though this value was not passed through the filter.
;4#0+/+.'42
5 &
Z Z4 9 & # ' 4 & # ' 4
5&4 5&4 25 + & :6 2%
$55 210
P G V VK T Y G D Q V C V C F G J V UK J : : G V [ D F P Q E G U G J 6 P G V VK T Y I PK G D & # U U G T F F C T G V UK I G T < G J V U G F W N E P K F P C F P C O O Q E J:: G VK T Y G J V U K G V [ D V U T K H G J 6 G V W E G Z G Q V U G V [ D Q Y V G TK W S G T U F P C O O Q E ' 6 + 4 9 G J 6 J( & J% G FQ O +2 5 G J V PK UGV[ D QYV FC GT QV F PCOO QE # J( G F Q O + 25 GJ V PK G V[ D G PQ FC GT QV F PCOO QE # J( & # FNGKH F PCOO QE 5 & 4 G JV PK FKNCX G T C J J U G U U G T F F # [N P 1 T G V UK I G T 5 5 G J V PK VK D & 4 G J V I PK V V G U F P C U T G V UK I G T V W R V W Q G J V Q V & # & # F P C O O Q E G J V H Q P Q K V T Q R U U G T F F C G J V [ D F GK H K V P G F K G P Q G J V J V K Y I P K V T C V U U T G V UK I G T G XK V W E G U P Q E Q Y V G J V H Q U V P G V P Q E G J V I P K X Q O [ D G E P G W S G U F C G T G V [ D Q Y V C G V CK V K P K Q V F G U W U K J E K J Y F P C O O Q E G V [ D G P Q C U K 5 & 4 J J & # FNGK H F P COO QE 5 & 4 G J V P K F K N C X G T C J J U G U U G T F F # T G V U K I G T V W RV W Q G J V Q V F P C O O Q E G J V H Q & # F N GK H U U G T F F C G J V [ D F G K H K V P G F K T G V UK I G T G J V H Q U V P G V P Q E G J V I P K X Q O [ D G E P G W S G U F C G T G V [ D G P Q C G V C K V K P K Q V F G U W F P C O O Q E G V [ D G P Q C UK 5 & 4 J J F G N D C P G T G OK V G U C T ' F P Q E G 5 C V W Q J V K Y T Q J VK Y [ CN R U K F T Q H G V C N R O G V P G G T E U 5 & : F G O O C T I Q T R G T R C U V E G N G U 2 5 + & J J [ CN R UK F T Q I PK U U G E Q T R T Q H N G P P C J E C V C F 6 6 V Z G 6 T Q % % % % P QK V R C % F G U QN % C U V E G N G U : 6 2 % J( J G U W T QH [ FCG T UK VT Q R G JV GV [ D J '( G JV H Q F PG G JV V # J'( HQ G V[ D $ 55 GP Q [ D F G Y Q N N Q H J ( ( H Q U G V [ D $ 5 5 Q Y V V U C G N V C H Q V U K U P Q E FN W Q J U I P K T V U U K J 6 V T C R G J V Q V I PK T V U C V C F I PK \K P Q T J E P [ U C I PK F P G U [ D F G \K P Q T J E P [ U G D P C E U P QK V C EK P W O O Q E G F Q O +25 J'( J(( J(( OTQH GJV PK UFPCOOQE GV[D GNIPKU HQ IPKTVU C HQ UVUKUPQE [NNCWVEC FPCOOQE UKJ6 [NPQ GFQO +25 PK FGUW GTC U$55 UGV[$ EP[5 NCKTG5 J'( J( J(( U WVC V U ; & 4 G JV H Q V P G F P G R G F PK FGV W E GZG G D P C E F PC T G VUK IG T 55 U WV C V 5 N CKT G 5 G J V PK VKD ; & 4 GJ V H Q U W VCV U G JV V EGH HC V Q P UGQF FPCOOQE 210 GJ6 GFQO %+ TQ +25 PK GUW TQH FPCOOQE GV[D GPQ C UK 210 J VG U I PK G D ; & 4 V W Q J V K Y F G T G V P G G D P C E G E P G W S G U UK J 6 H N G U V K V T Q R N CK T G U G J V V G U G T V Q P UG Q F VK VW D GEKX GF G J V PK U I PKVV GU VNW CHG F FGKHK EG R U G J V NNC UG JUKN DC V UG F P COO QE 6 ' 5' 4 G J6 G F Q O % + TQ +25 PK GEPGWSGU FPCOOQE GV[D GGTJV C UK 6'5'4 J J%( J$( P QK V E P W ( G F Q% FP COO Q%
Table 19. Z86229 Summary of Control Commands
6'5'4 G OC 0 FP COO Q%
TG F QEG & &%% GPK . % 56 0 <
Z86229 COMMANDS AND REGISTER SUMMARY
ZiLOG
5 &
;4#0+/+.'42
% % 8#& U GT 4 4 7% * %5 Z J 2 4 &6 5 86 -%1 .
D0
% % '. & '. & 46 7( 5&: Z J 6 1 01 / &.(
D1
% % (1' (1' 0 # *% U GT Z J * 0 '6 -. * 4 81 4
&
% % - 1. F - 1. F % 5+ / U GT Z J 2 4 &% -. 8 46 0 +
&
6 * % 5F * % 5F .$ 7 2 U GT [ J % U GT 4 8 19
&
6 5&:F 5&:F U U GT [ J * 0 '% U GT &4
D5
6 2 #% F 2 #% F U U GT [ 1 2* 24 & 1 U GT 8#&
&
6 6 :6F 6 :6F U U GT [ :$ 7 .$ 1 U GT ;&4
&
J J J J J J J J J G PQ 0 U U GT F F #
[ VK XK V E # P QK V R C % M U C / V R WT T G V P + V U G W S G 4 V R WT T G V P + T G VNK ( 5 & : [ V K XK V E # G P K . P QKVK U Q2 V ZG6 P Q K VK U Q 2 * [ CN R UK & P QK V C T W IK H P Q % 455 T G V UK I G 4 U W V C V 5 N CK T G 5 G O C 0 T G V UK I G 4
GET Q H PK V GU TG VEC TC J% FG F PGVZ ' G JV UV GU F PCOO QE UK J6 G E T Q H P K V G U T G V E C T C J % U EK J R C T ) G J V U V G U F P C O O Q E U K J 6 GV [ D P P G JV [ D F G V C P IK U G F U G O C T H H Q T G D O W P G J V [N G V C OK Z Q T R R C T Q H P QK V W E G Z G F P C O O Q E N CK T G U G J V I PK F P G R U W U [ D G T G J V 5 5 H Q VK D ; & 4 G J V U V G U F P C O O Q E UK J 6 T G V E CT C J E G FK 9 GN D W Q & C U GK HK E G R U V W D F P C O O Q E # G J V U C G O C U G J V UK F P C O O Q E UK J 6 Y Q T J IK * GN D W Q & C U G V C EK F PK T T H Q V K $ Y Q T G J V H Q [ CN R U K F U G N D C P G T T H Q V K $ G V [ D G J V H Q GN D D K P Y QN G J V [ D F G V C P IK U G F Y Q T [ CN R UK F G J V Q V Y Q T N C EK U [ J R V P G T T W E G J V U R C O F P C O O Q E UK J 6 T Q UT WE G J V U VP GOG TE PK P G JV F P C P QK V C E QN T Q U T W E V P G T T W E G J V Q V F F G V [ D C V C F G J V U G VK T Y F P C O O Q E UK J 6 G EC R U % # 2 G J V U K Q T G < P O WN Q E J Q V J O Q T H G W N C X [ P C G D P C E J EK J Y E E [ D F G V C P IK U G F P Q K V K U Q R P O W N Q E T G V E C T C J E G J V V C T Q U T W E G J V U G E C N R F P C O O Q E U K J 6 J ( Q V J O Q T H G W N C X Y Q T N C EK U [ J R G J V U G V C P IK U G F H Q GN D DK P T G F T Q Y QN G J V G T G J Y Y Q T N C EK U [ J R G J V U V G U F P C O O Q E UK J 6 J IK * GN D W Q & G G T J V Y Q T [ CN R UK F V E GN G U FN W Q Y J T T Y Q T [ CN R UK F V E GN G U FN W Q Y J ' T T GN R O C Z G T Q ( Y Q T J IK * GN D W Q & C U GK H K E G R U H Q VK $ Y Q T [ CN R UK F G J V U G V C P IK U G F H Q GN D DK P T G F T Q Y QN G J 6 P O W N Q E T C J E Q V T Q U T W E G J V U G X Q O F P C Y Q T [ C N R UK F G J V U V G U F P C O O Q E UK J 6 [TQOGO FG[CNRUKF PQP GUCTG HQ VPGNCXKWSG &51 [TQOGO FG[CNRUKF GUCTG HQ VPGNCXKWSG &51 %1' PQKVRCE HQ FPG PQKVRCE PQ RQR HQ VPGNCXKWSG &51 [ CN R UK F & 5 1 H Q G R [ V P Q R Q R C U G J UKN D C V U ' [ C N R UK F & 5 1 H Q G R [ V V Z G 6 C U G J U K N D C V U ' 4'& YQT HQ FPG QV GVGNGF HQ VPGNCXKWSG &51 G F Q O 6 ' 5 6 : ' 6 PK P G J Y & 5 1 T Q H P T W V G T G I CK T T C % P QK V E P W (
Table 20. Z86229 OSD Display Mode Commands rr rr rr rr rr
Table 21. Summary of Z86229 Internal Registers
J J% J J J PP J # JF F # J TT J # J FF J # JEE J #
&' & 0 '6 : ' 5 %+ * 2 # 4 ) 6 +# 9 ' &+ 9 . $ & 4 # *% '6 +4 9 2 # / '6 +4 9 4 # *% '6 +4 9 6 ' 5 4 1 5 4 7%
J TT J # . ' 5 9 1 4 5 ; * 2 J TT J # J J J J J J J G F Q% FP COO Q% P QK V R 1 J IK * GN D W Q & J VK Y . ' 5 9 14 21 2 / 0' 1 / &' 1 2 +.( 6' 5 2 1 2 6 ' 56 : '6 '4 .% 0 4 76 ' 4 G OC 0 FP COO Q%
FGWPKVPQ%
54'65+)'4 .#04'60+
ZiLOG
T G FQ EG & &%% G PK. % 56 0 <
ZiLOG
ON-SCREEN DISPLAY OSD Operation
The Z86229 has a fully programmable, general purpose OnScreen Display (OSD) built in. The user can supply information for display through the serial port. In addition to all the normal and extended features of the VBI data display modes, the OSD mode also has available added graphics characters, Double-High and Double-Wide characters, and the ability to position the display anywhere on the screen with an adjustable (vertical) box size. The Double-High and Double-Wide characters are especially useful for creating OSD screens for display inside a Picture-in-Picture (PiP) window. The OSD display mode can use either 13 or 15 lines per row, with a box or drop shadow. The default is 15 scan lines per row in addition to the drop shadow. Enhanced attributes are always enabled. The 15 scan line per row display can only show 13 rows on-screen when in the NTSC mode. Rows 14 and 15 is offscreen and should not be addressed. In the PAL mode all rows are visible. The 15 scan lines per row mode display can show the full graphic characters and accented capital letters and descenders without the potential overlap that would result from the 13 scan line per row display. If the OSD display mode is changed to a 13 scan line per row mode, the top two scan lines of any graphics or accented capital letter is "ORed" together with the bottom two scan lines from the row above. In 13 line-drop-shadow mode, it also results in a side shadow effect. Graphics characters should not be used in the 13line drop-shadow mode. by default, the Graphics Character set is displayed in response to an address in the C0h-FFh range; however, if a BOX display is used, the Extended Character set is invoked. In either case the user can switch to the other set by means of the appropriate command (GRAPHICS or EXTENDED). The VIN/INTRO pin serves as the input for a Vertical Pulse from the TV receiver when V Lock = VIN mode is enabled. This condition permits an OSD display even when no video input is present. If this mode is not required, the default state V Lock = VIDEO should be active. This pin then carries the INTRO output signal.
OSD Commands
OSD commands are one- and two-byte commands. They are used to control the loading of data for OSD display and their presentation to the screen. Normally, the OSD display mode uses 15 TV lines per display row to enhance the OSD presentation. The two-byte commands enable direct access to any location on the display screen. The user can customize displays by using these commands. Each command byte pair consists of an instruction byte followed by a data byte. (See A Sample OSD Program on page 39.)
Note: In this product specification, one- and two-byte com-
OSD Character Set
There are 256 possible addresses in the OSD character set. Figure 28 illustrates the address map in the range 00h-BFh. This portion of the addressable space contains the control bytes and regular character set. The address map in the range C0h-FFh is illustrated in Figure 17. These addresses are shared by the Extended Character set and the Graphics Character set. Any particular OSD screen can use one or the other of these sets of characters but not both. The character set in force is controlled by the type of display mode being invoked. When the Drop Shadow is being used,
mands are written as one or two two-digit Hex values, separated by a comma, within curly braces. For example, the WRITE CHAR command for entering the letter A as a single-width character would be shown in this document as {A3,41}. This command would write the letter A to the current cursor position of the display row being addressed. Refer to the Serial Communications Interface and Commands sections for further details of the serial communications and the OSD commands (see pages 22 and 26, respectively).
The one-byte commands provide a simple means of creating OSD displays using preset screen formats built into the part. These built-in modes provide the user with a simple way to generate OSD screens. Two preset display modes are available called POPSET and TEXTSET.
TG F QEG & &%% GPK . % 56 0 <
;4#0+/+.'42
5 &
5 &
;4#0+/+.'42
Figure 28. OSD Character Set
FGWPKVPQ%
;#.25+& 0''4%5 01
ZiLOG
T G FQ EG & &%% G PK. % 56 0 <
ZiLOG
Using POPSET
POPSET provides an OSD mode that operates in a fashion similar to the Caption Pop-on mode. The POPSET command organizes the memory into two eight row blocks, one visible on-screen and the other off-screen. An OSD screen can then be created by loading the off-screen memory by the command sequence POP ROW SEL, WRITE CHAR ..
WRITE CHAR .. POP ROW SEL .. WRITE CHAR .. WRITE CHAR. The data can then be presented for on-screen display
a typical menu screen used in television receivers. It should be noted that in this document, commands are written as either a one- or two-byte HEX value, separated by a comma, within curly braces (that is, a sample two-byte OSD command: {A1,00}). In the sample programs below, a comment field can be written following the command to describe the action of the command or sequence of commands, where appropriate. The comment field is identified by an asterisk (*), and any text following the * is taken as a "comment". Therefore, to include a comment in the program, simply add the * at the beginning of the function description.
with the FLIP command. The following is an example of a command sequence that creates an OSD screen using the POPSET mode. It creates
A Sample OSD Program
SET UP is displayed in row 8 using Double-Wide chars.
The next block of commands displays AUDIO in row 4 with Double-Width.
CLOSED CAPTION displayed in row 10 using Double-Wide characters. The last letter, N, appears in character column 30 and 31.
The next set of commands displays the word "TIME" in row 6 with Double-Wide characters. Spacing is obtained without the A2 Cursor Set command to illustrate an alternate means of column alignment.
TG F QEG & &%% GPK . % 56 0 <
N Q E T C J E P K T Q UT W E 9 1 4 2 1 2 V E G N G 5 _ #] ' _ #] / _ F #] + _ #] NQE TCJE QV PGVVKTY 6 _ #] U P O WNQ E TG VEC TC JE Q V P G V V K T Y T C J E G E C R U G FK 9 GN D W Q & _ #] N Q E T G V E C T C J E Q V P G V VK T Y G F Q E F K O P G G T ) _ #] P Q KV E P W ( U F P C O O Q % & 51 2 7 6 ' 5 U T G V E CT C J E P G G T ) Q V T Q UT W% 9 1 42 12 VEGNG 5 % & ' 5 1 . % T C JE P GG T) Q V T Q UT W% C 9 1 42 12 VEGNG 5 _ #] _ #] _ #] _ #] _ #] _( #] _% #] _ #] _ #] _ #] _ # #] _ #] _ #] _ #] _ #] _ #] _ #] _ #] _ #] _ #] ;4#0+/+.'42 1 ' & + N Q E T C J E Q V P GV V K T Y 8 N Q E T C J E Q V P GV VKT Y G F Q E FK O P G GT ) NQE TCJE PK U[CNRUKF TCJE GFK9 GNDWQ& P QK VCE QN % # 2 PK P G V VK T Y U T C J E & ' 4 T Q H % # 2 1 + & 7 N QE TC JE QV PG VVK TY # N Q E T C J E Q V P GV VKT Y G F Q E FK O P G GT ) N QE TC JE QV T QU T W% NQ E TC J E PK TQ U T WE 9 1 4 21 2 VE GNG 5 NQ E TC J E PK TQ U T WE 9 1 4 21 2 VE GNG 5
Q V T Q UT W E G X Q / _ # ] PO WN QE T GVE CT CJ E VC TQ U T WE 9 1 4 21 2 VE GNG 5 _ # ] F PCOO QE & 4 # *% '6 + 49 G JV JVKY FG TG VP G UK TGV EC TC JE J E C ' U T C J E G FK 9 GN D W Q & PK 1 ' & + 8 [ C N R UK F U F P C O O Q E H Q M E Q N D V U TK H G J 6 G F QO 6' 5 21 2 VE GNG 5 _ ] P QK V E P W ( U F P C O O Q % &5 1 5 & _ # ] _( # ] _ # ] _ # ] _ # ] _ # ] _ # ] _( # ] _ # ] _ # ] _ # ] _ # ] _ # ] _ # ] _ # ] _ # ] _ G # ]
5 &
;4#0+/+.'42 _ #] _ #] _ #] _ # #] _ #] _] _ #] _ #] _ ' #] _ #] _ ' #] _ #] _ #] _ #] _ $ #] _ #] _ #]
G J U QR TCJE QV UGXQO TQUTWE JVFKY GNIPKU 6 U Q R T C JE QV U G X QO T Q UT WE Y QNN G ; Q V T QN QE UVG U % # 2 U Q R T CJ E Q V T Q UT W% N QE TC JE G FK 9 GN D W Q & NQE TCJE GFK9 GNDWQ& ) NQE TCJE GFK9 GNDWQ& 0 NQE TCJE GFK9 GNDWQ& + NQE TCJE GFK9 GNDWQ& 0 NQE TCJE GFK9 GNDWQ& 4 NQE TCJE GFK9 GNDWQ& # NQE TCJE GFK9 GNDWQ& 9 Q V U G X Q O T Q U T W % J U CN ( V T C V U Q V G F Q E FK / Q V UGX QO T QU T W% U TC JE FG 4 G MCO QV G F QE FK / U Q R T CJ E Q V T Q UT W%
UQR TCJE Y QT VZGP QV TQU TWE UGXQ O PTWVG4
G F Q O 6 ' 5 6 : ' 6 V E GN G 5 _ ] F G I P C J E P W 5 1 2 * R G G M G WN $ Q V : 1 $ V G 5 _ # %] Y Q T U GPKN G F Q O : 1 $ T Q H [ CN R U K F & 5 1 V G 5 _ %] U Y Q T Y Q T G UC D T QH IG T UQ R VZG6 VG 5 _ & %] P Q KV E P W ( U F P C O O Q % & 51
The Text display is first set to 4 rows at the bottom of the screen.
TEXTSET features an OSD mode that paints on the screen in a manner similar to a Text Mode display. The memory is organized using the current information in the Text Position register, and the display follows the current setting
P G G T E U P Q W P G O NN W H G J V I PK R R Q R U GK T Q O G O U RKN H F P C O O Q E 2 + . ( 7 0 ' / V K Z ' 4 ' 6 0 ' V E G N G 5 T C JE 0# ;% E 9 1 42 12 V EGNG U
0 _ ' # ] 1 _( # ] + _ # ] 6 _ # ] 2 _ # ] # _ # ] P QK V E P W ( U F P C O O Q % &5 1
FGWPKVPQ%
;#.25+& 0''4%5 01
T G FQ EG & &%% G PK. % 56 0 <
Using Textset
The line, Select: ENTER EXIT: MENU, appears in row 12, starting in character column 2. These are displayed as singlewide characters.
The following example shows an OSD display generated using TEXTSET. This screen is a paint-on rather than popon. Features like flash are included in the command sequence for demonstration purposes.
in the Display register. The default display parameters for the OSD are 15 lines per row, Drop-Shadow mode. The TEXTSET command can be followed by successive WRITE CHAR commands interspersed with the RETURN command at the appropriate points to paint on an OSD display starting at the top of the Text window. These commands are set by the Text Position register, moving to the next line at each RETURN command. The display scrolls if a RETURN command is sent when at the bottom of the Text window. A subsequent TEXTSET command clears the screen, thereby generating a new OSD screen.
The next two commands are used for positioning and color.
_ ] _ # ] _ ' # ] _ # ] _ & # ] _ # ] _ # # ] _ # ] _ # ] _ # ] _ # ] _ # ] _ # ] _ # ] _ # ] _ # ] _ ' # ] _ # ] _ # ] _ # # ] _ # ] _ # ] _ # ] _ % # ] _ # ] _ # ] _ # ] _ % # ]
ZiLOG
Y Q T JV T W Q H P T WV G 4 Y QT F TKJ V P T WVG 4 Y QT F PQ EG U P T WVG 4 U G O CT H V K C Y YQ T V U TKH P T WVG 4 U F P Q E G U T Q H VK C 9
;4#0+/+.'42 _ ] _( #] _] _( #] _] _( #] _] _ ' #]
5 &
TG F QEG & &%% GPK . % 56 0 <
ZiLOG
Create a smooth scroll to clear the screen with the following 4row sequence. At this point all 4 rows are on-screen. The following wait command holds the display for a period = (12x16)/30 seconds.
[ N G V C K F G O O K U P Q K V W C E G T R [ T C U U G E G P
_ ' #] _ #] _% #] _ #] _ #] _ #] _ #] _ #] _ #] _ & #] _ & #] _ #] _ #] _ #] _ ' #] _( #] _ #] _ #] _ #] _ #] _ #] _ #] _ #] _ #] _] _ #] _ #] _ #] _ #] _ #] _ #] _ #] _ #] _ ' #]
U QR TCJE YQT VZGP QV TQUTWE UGXQO PTWVG4
N N C G M C V G U C G N 2
_ # ] _ % # ] _ % # ] _ # ] _ # ] _ # ] _$ # ] _ # ] _ # ] _ # ] _ # ] _ # ] _ # ] _ # ] _ % # ] _ # ] _ ] _ ' # ] _ # ] _ # ] _ # ] _ # ] _ # ] _ # ] _ # ] _ # ] _ # ] _ ' # ] _ # ] _ # ] _( # ] _ # ] _ # ] _ ' # ] _ # ] _( # ] _ # ] _ # ] _ # ] _ # ] _ # ] _ # ] _ # ] _ # ] _ # ]
C G T C G J V P K Q F C P T Q V C U K G T
P Q KV E P W ( U F P C O O Q % & 51
P QK V E P W ( U F P C O O Q % &5 1
Using The Graphics Character Set
The following example creates an OSD screen which illustrates several features of the Z86229 including the use of the Graphics character set to generate a large font word. The particular features shown are purely for demonstration purposes and are not intended to suggest a particular application. For the sake of brevity, the "text" to be displayed is shown as a string within quotes rather than as the actual command sequences required. Single quotes (` ') signifies standard characters, while double quotes (" ") signifies Double-Wide characters.
Using the WAIT Command
The WAIT command suspends serial port communications for a period of time. The TEXTSET example above used the WAIT command in two ways: first, to hold a display on-screen for a period of time before taking a second action, and second, it was used to create a smooth scroll by timing the wait to the scroll rate.
5 &
[CN R UKF F P Q E G U T Q H U F P C O O Q E P QK V C T G P G I P G G T E 5 FG UC TG UK [ T Q O G O F G [ CN R UK F P Q P G T W U P G Q V / 0 ' 1 PGG TE U P Q W PGO V U TKH G JV I PK R R Q R U GK T Q O G O U RKN ( F P C O O Q E 2+ . (
P G GT E U P Q W P G O F P Q E G U G JV I PK R R Q R U GK T Q O G O U RKN H F P C O O Q E 2+ . ( U FP QE GU VKC9
[CN R UKF V U TKH T Q H U F PCOO QE P QKV CTG P GI PG GTE 5 G F Q O R Q R V E GN G 5
QV TQ U T WE GX Q / 9 1 42 12 VEGNG 5 G F Q O R Q R V E GN G 5
P Q KV E P W ( U F P C O O Q % & 51
_ ] _% #] _ ] _ ]
;4#0+/+.'42
_ #] _ #] _ ]
_ ] _ ]
_ ]
_ ] _ ] _ ]
_ ]
E K P C R V P Q F P TW VG 4 V U G V C [ N P Q U C Y U K J V [ CN R U K F P G G T E U Y G P C G V C G T %
FGWPKVPQ%
T G FQ EG & &%% G PK. % 56 0 <
ZiLOG
;#.25+& 0''4%5 01
P QK V E P W ( U F P C O O Q % &5 1
The WAIT command can also be used to control the appearance of two OSD displays in sequence without tying up the master device for the total display time. In the following example, the POPSET mode is used to pop on two sequential menu screens with a built-in pause between the two displays. In this case, the WAIT is placed just before the most recent FLIP command. This condition allows the entire command sequence to be sent to the Z86229 at one time. Because the RDY bit is set by the WAIT command, this condition also allows the FLIP to be input as well. The command sequence would be as follows:
_ ' # ] _ # ] _ # ] _ ' # ] _ # ] _ # ] _ # ] _ # ] _ # ] _ ' # ] _( # ] _ # ] _ ] _ # ] _ # ] _ # ] _ # ] _ # ] _ # ] _ # ] _ # ] _ % # ] _ ' # ] _( # ] _ # ] _ # ] _ # ] _ # ] _ # ] _ # ] _ # ] _ # ] _ # ]
_( # ]
;4#0+/+.'42
5 &
RKNH NN G % EK J R C T ) N N G % EK J R C T ) N N G % EK J R C T ) N N G % EK J R C T ) N N G % EK J R C T ) N N G % EK J R C T ) N N G % EK J R C T ) U TC JE PC[% % #2 QV TQ U T WE GX Q / 9 1 42 12 VEGNG 5 G F Q O R Q R V E GN G 5
TG F QEG & &%% GPK . % 56 0 <
_] _ F #] _ DG #] _ #] _ DG #] _ #] _ DG #] _ #] _ DG #] _ #] _CG #] _CG #] _ #] _ #] _ #] _ #] _ #] _ #] _ #] _E #] _ ]
ZiLOG
The next group of commands use Graphic Char patterns to make the two row word HELLO. The data byte of the WRITE CHAR command is the address location for the graphic cell required as illustrated in Figure 5.
1. More than 8 on-screen rows required in a "pop-on" style screen. In some applications, it may be necessary to access the display hardware at a lower level to achieve special screen effects. Examples of these special situations include the following: POPSET screens are created in off-screen memory while the previous screen is displaying. Up to 8 rows of characters can be defined. These rows can be mapped to any of 15 display rows using the POP ROW SEL command. Doublehigh rows may also be defined with POP ROW SEL. The FLIP command is then used to "pop-on" up to 8 rows of characters replacing the previous screen. The off-screen rows may be mapped to the same row numbers as the onscreen rows. TEXTSET mode provides automatic row allocation from the top to bottom of a screen with all rows continuously visible. Additionally, TEXTSET screens have a definable vertical window size and position, allowing support of automatic text scrolling at the bottom of the window. For most OSD displays, the POPSET, POP ROW SEL, FLIP, TEXTSET, and RETURN commands should be used to control row positioning.
NN G % EK J R C T ) NN G % EK J R C T ) NNG % EK J R CT ) NNG % EK J R CT ) NN G % EK J R C T ) NNG % EK J R CT ) NNG % EK J R CT ) T GKN T C G VK F G I P C J E F C J T G U W T G J V Q P C G U C E PK G F Q O U EK J R C T ) V G 5 UTC J E P C[% % # 2 Q V T Q UT W E G X Q / 9 1 4 21 2 VE GNG 5
_ H # ] _C H # ] _ # ] _ CG # ] _ # ] _ CG # ] _ # ] _D H # ] _ # ] _ CG # ] _ DG # ] _ # ] _ # ] _ # ] _ # ] _ # ] _ ] _ # ] _ # ] _ D # ]
Manual Row Mapping and Control
GMKN FGV C G TE G D P CE UEK JR CT ) U TC JE CV PG IC / %# 2 _ E # ] Q V T Q UT W E G X Q / _ # ] 9 1 4 21 2 VE GNG 5 _ # ] G FK 9 GN D W Q & U TC JE Y QNNG ; %# 2 _ C # ] Q V T Q UT W E G X Q / _ # ] 9 1 4 21 2 VE GNG 5 _ # ] F G U W G D [ C O G PKN T G F P 7 F P C T QN Q % F G PKN T G F P 7 P C [ % % # 2 _ # ] Q V T Q UT W E G X Q / _ # ] 9 1 4 21 2 VE GNG 5 _ # ] UPQKVRC% IPK[CNRUKF UGFKUGD T C JE G WN$ _ # ] QV T QU T W% _ # ] 9 1 4 21 2 VE GNG 5 _ # ] U GT W V C G H [ P C O U C J < G J 6 TC JE & ' 4 % # 2 _ # ] QV T QU T W% _ # ] 9 1 4 21 2 VE GNG 5 _ # ] & 5 1 ( 1 0 1+ 6 # 4 6 5 0 1 / ' & # 5 + 5+ * 6 UT CJ E 0 ' ' 4 ) % # 2 _ # ] G F Q O R Q R V E GN G 5 _ ]
2. Characters must be added dynamically to an on-screen display. 3. On-screen rows must be dynamically moved, disabled, or enabled. The Z86229 supports manual screen mapping and display control commands to handle these special applications. These commands allow each of the 16 physical rows of character memory implemented in the device to be mapped to any of 15 display row positions. Additionally, the 16 physical rows can be set for single or double height and independently enabled and disabled. Manual row mapping and control commands should only be used in the POPSET OSD mode. The procedure for manual row control is as follows: 1. Use the POPSET command to select the OSD pop-up mode. This command prepares the Z86229 for OSD input, clears the row maps, and erases character memory. 2. Select a physical row (0 through 15) using the PHY ROW SEL command. 3. Use the WRITE MAP command to set the display row (1 through 15), Double-High bit, and enable bit of the selected physical row. The CURSOR SET, WRITE CHAR and WRITE CHARD commands are used to position the cursor and write the characters in the selected physical row.
A physical row may be re-selected at any time to change its characters, row maps, Double-High mode, or enable status. For example, it may be desirable to load several rows of characters into physical memory without enabling them. All of the rows could then be made to "pop" onto the screen simultaneously by setting their enable bits. The following example uses manual row mapping and control to write three rows of characters. The first row is a Double-High row that is enabled before the characters are sent. This condition allows the characters to "paint" onto the screen as they are received. The second and third row are not initially mapped or enabled when the characters are written. They are then mapped and enabled after a two second pause. A new row is then created off-screen to replace the third row. Finally, after a 2 second pause, the second row
5 &
GN D W Q F G N D C P G Y Q T Q V V K R C / _$ #] Y QT R VE GNG 5 _ #] V K GN D C UK & _ #] Y QT R VE GNG 5 _ #] GN D W Q F GN D C P G Y Q T [ CN R U K F Q V V K R C / _ # #] Y QT NC EKU[ J R VE GNG 5 _ #] [ CN R UK F F GK HK F Q O G J V G M C / U F P Q E G U VK C 9 _ #] GUWCR C TGVHC FGXQ/ V Z G V G FK Y GN I PK 5 P C[% _ #] QV T QU T W% _ #] Y QT NC EKU[ J R VE GNG 5 _ #] Y Q T G E C N R G T Q V Y Q T Y G P C GT C R GT 2 GN D C P G Y Q T F Q V V K R C / _ #] Y QT R VE GNG 5 _ #] G N D C P G Y Q T [ CN R U K F Q V V K R C / _ #] Y QT NC EKU[ J R VE GNG 5 _ #] GN DC PG F PC RCO G JV Q & U F P Q E G U VK C 9 _ #] GUWCR C TGVHC FGNDCPG VZGV GFKY GNIPK5 P C[% _ #] QV T QU T W% _ #] Y QT R VE GNG 5 _ #] GTC UYQT QYV GUGJ6 V Z G V G FK Y GN I PK 5 Y QNN G ; _C #] QV T QU T W% _ #] Y QT NC EKU[ J R VE GNG 5 _ #] YQ4 VUTK( GJ6 VZ GV G FK9 GN D W Q & P G GT ) _ #] QV T QU T W% _ #] GN D W Q F G N D C P G Y Q T [ CN R U K F Q V V K R C / _ #] Y QT NC EKU[ J R VE GNG 5 _ #] G F QO 6' 5 21 2 VE GNG 5 _]
P QK V E P W (
U FO% & 51
;4#0+/+.'42
FGWPKVPQ%
T G FQ EG & &%% G PK. % 56 0 <
ZiLOG
;#.25+& 0''4%5 01
is moved to a new display row, the original third row is disabled, and the new third row is mapped and enabled.
ZiLOG
DEMONSTRATION PROGRAMS Communicating with the Z86229
Communications with the Z86229 is accomplished using its serial communications interface. Through hardware setup, this interface can be configured into either of two serial protocols, I2C or SPI. The details of hardware setup have been provided in the Serial Communications Interface section (page 22) and are not dealt with here. It is assumed that the user is familiar with the serial protocol requirements.
Note: In the following descriptions means press the
and LOCK bits are High. This condition indicates that the serial port is ready for further input, that the input video signal was in Field 1 at the time the status was read, and that the part is operating in video-lock mode. The IICO program is exited by entering a Control+C (^C) character. For example, entering the following single byte commands would generate the following:
I2C Operation
The Z86229 is configurable as an I2C slave device. The PC communicates with the Z86229 through its parallel port. These programs are not intended as examples of how to program the application, but are only provided as a means of illustrating the serial control process and the capability of the Z86229. The three programs available are titled IICO, SCRIPTI, and XDSCAP. These programs have been compiled and run satisfactorily with the Z86229 in a test board. Compiled versions are available on disk. Contact your local ZiLOG sales office for further information on these programs.
The commands that control most of the display capability of the Z86229 are all one-byte commands which can be entered using the IICO program. These commands are tabulated below for convenience.
General Commands
G F Q % F PC O O Q %
IIC Command Byte >
Caption/Text Display Mode Commands
CPTX Command Code
IIC Byte = 00 IIC Status = 83h
The text above shows that the NOP command was entered. The SS register contents, 83h, indicates that the RDY, FLD,
(( 1 TG F QEG &
# J J J% J ' J J
0 1 TG F QE G &
J J$ J J J & J( J J
6 6 6 6 %% %% %% %%
The user may enter any valid one-byte command such as FBh (Reset) or 00h (NOP) and then hit the ENTER key. The screen then displays the byte entered and the SS register contents read:
J'( J(( J(( J J J%( J$(
F PC O OQ % :6 2%
;4#0+/+.'42
$5 5 21 0 6 ' 5' 4
This program sends one byte to the Z86229 without checking the status of the READY bit. The program returns the contents of the Serial Status (SS) Register after the command has been entered. When the program is active the screen displays:
F P C O O Q % N CK T G 5
IICO Program
J %( $(
J
J
0 1 TG F QE GF G F Q O [ CN R U K F % % G J V Q V P T W V G 4 0 1 T G OK 6 F P Q E G 5 G F Q O [ CN R U K F G \ C T ) 5 & : G J V Q V G I P C J % 0 1 TG F QE GF G F QO [CN R UKF %% Q V V TC R G JV VG 5 V TC R G JV VG UG 4
F PCOO Q%
Enter key.
TG F QEG & &%% GPK . % 56 0 < G F Q% FP COO Q%
5 &
XDS & Miscellaneous Display Mode Commands
XDS Command
Note: *Changing the ON/OFF state of the 16-Second Erase Timer has no affect on the current display mode in operation.
{17}* send CC1, decoder ON
The program is invoked by typing:
SI File_name
Note: Enter the file_name without the .SER extension.
Display Register Script Files
The screen displays:
EEG CCD2 Serial Version x.xx Interface Script Player
Slave Address is 28h Script File Done
The program checks the RDY status before sending each byte. If, during the entry of a command, the RDY bit is not found to be a "one" after an extended wait, the program reports the contents of the SS register and then continue checking for RDY Script Files.
5 &
;4#0+/+.'42
#6 &
The responding slave address is reported to the screen. When all the commands in the file have been successfully sent to the Z86229, the PC returns to the system prompt.
G F Q O F G E P C J P ' 2 # % GN D C UK & _ G % ] Y Q T GU CD VZGV H Q UY QT _ && %] VZG V R Q T F F PC UG PKN XV _% % ] U G PKN Y Q F C J U R Q T F V Z G 6 Q V T G V UK I G T [ C N R U K F V G 5 _ % % ] Y QT TG R U GPKN V Z G 6 Q V T G V UK I G T [ C N R U K F V G 5 _ % % ] Y Q FC JU R Q T F V Z G 6 Q V T G V UK I G T [ C N R U K F V G 5 _ % % ] UP QK VK F P QE VN W C H G F Q V T G V UK I G T [ C N R U K F V G 5 _ % % ]
P Q KV E P W ( F P C O O Q %
_ % ]
_(( % ]
. #2 )+(
GOC 0 GNK(
0 )+(
This program is designed to send any number of one or twobyte commands to the Z86229. The list of commands to be executed are contained in Script files that have the extension .SER. Examples of such files are presented in the following paragraphs. SCRIPTI can be used to control the display modes in the same manner as the IICO program, except that the one-byte command to be sent must be in a Script file. For example, a file called CC1.SER would contain the onebyte command:
. # 2 . Q V G PKN + $ 8 U G I P C J % 5 8 6 Q V T G V U K I G T I KH P Q E V G 5 UY QT Y Q T G UC D Q V T G V UK I G T U Q R V Z G V G I P C J % 6 % Q V T G V UK I G T [ C N R UK F G I P C J % T G V P G E Q V [ CN R U K F J P T W V G 4 G VCV U VN WC HG F Q V MEC D IKH P QE V G 5 [ C N R UK F J T G V P G % U Q R T Q H G UN W R 8 V Z G V G U V K $ - . * - . 8 V Z G Q V I KH P Q E V G 5 T C G N E T G V UK I G T M U C / 6 0 + V G 5 Q P Q O Q V I KH P Q E V G 5
_ & % ] _ % ] _ % ] _ & % ] _ ] _% % ] _ % ] _ % ]
* 8 )+( / )+(
SCRIPTI Program
P QK V E P W ( F P C O O Q %
G OC 0 GNK(
6 &
6 &
6 &
'% &
0&
TGOK6 EG 5
FGWPKVPQ%
(( 1 01 (( 1 01 (( 1 01
5/#4)142 01+6#46501/'&
R UK & 5 & :
GV Q 0 GV Q 0 (5&: (5&: )5&: )5&:
T G FQ EG & &%% G PK. % 56 0 <
ZiLOG
Script Files
Script files can be generated to perform all of the setup and control functions required to use the part in an application. The script files that follow are examples of such files used to setup the Z86229 for different operating conditions. Some of the files contain only a single command, while others include several commands. The user should refer to the Command and Registers section for details. Although the following examples are organized according to a particular register, some of the files contain information for several registers.
Configuration Register Script Files
GV [ $ & / %
J J J J J J
ZiLOG H Position Register Script Files
XDS Filter Register Script Files
Using Interrupts
Interrupts involve the use of the Line 21 Activity Register, the Interrupt Request Register, and the Interrupt Mask Register. The Z86229 must be configured for VLK internal so that the VIN signal (Pin 13) is an output providing the interrupt output signal. The interrupt status can be polled through bit D3 of the Serial Status (SS) Register if the interrupt signal cannot be used. Interrupts are disabled when the Interrupt Mask Register has been set to all zeros. Conversely, interrupts are enabled by setting one or more of the active bits to a "1". When enabled, the INTRO signal becomes a "1" when the enabled mask event(s) becomes active. If more than one event has been activated, the Interrupt Request Register must be queried to determine which event has occurred. The DLE and EOF interrupts are cleared at the end of the field in which they occurred.
Interrupt Mask Register Script Files
XDSCAP Program
This program performs the application's task of XDS data recovery. XDS recovery must first have been enabled through the appropriate XDS Filter command. Script file examples for setting the XDS Filter are shown below. The program is invoked by typing:
xdscap
When the program is invoked the PC screen shows:
EEG CCD2 XDS Data Recovery Test Program Version x.xx Slave Address is 28h
The responding slave address is reported to the screen. After communication is acknowledged, the program displays all XDS data recovered from those packets that were enabled through the XDS Filter command:
{01,03}Current Program{00}{0F,7F}....etc
The ASCII characters are shown as ASCII characters while the non-printing characters are displayed by their Hex value within curly braces. Byte pairs, such as Class,Type, are shown as pairs within the curly braces, separated by a comma (that is, {01,03}). If no data is received within approximately 45 seconds, the program times out, reports "Data Not Available", and exits.
Note: The XDSCAP program can also be exited by entering a
Control C (^C) character.
GXKV EC 6% F '. & VG 5 GXKVE C 5 & : F VG 5 GXKV EC - 1. F VG 5 GXK VEC '. & VG 5
P QKV EP W(
F PCOO Q %
_ %] _ %] _ %] _ %]
_ ' % ] 4 % 8.+( _ % ] ' /+ 6.+( _ % ] /.+( _ % ] * %.+( _ % ] #(.+(
Text Position Register Script Files
TG F QEG & &%% GPK . % 56 0 <
QH PK T EX TG VNKH 5 & : VG 5 [N P Q GOK V TG VNKH 5 & : VG 5 Q HPK E UKO TQ H TG VNKH 5 & : VG 5 U U CN E N G P P C J E Q V T G V N K H 5 & : V G 5 UU CN E G T WV WH NNC QV TG VNKH 5 & : V G 5 U U CN E F P C D PK V PG T T W E Q V TG VNKH 5 & : VG 5 U UCNE V PG T T W E NN C Q V TG VNKH 5 & : VG 5 [ TGX QE GT 5 & : HH Q U P T W 6 G P Q P Q V T G VNK H 5 & : V G 5 NN C Q V T G V N K H 5 & : V G 5
P QKV EP W( FP COO Q%
_ % ] _( % ] _ % ] _ % ]
GOC 0 GNK(
;4#0+/+.'42
% 46 0+ : 46 0+ -. 46 0+ & 46 0+
# %.+(
GOC 0 GNK(
.+ ( #.+( %.+(
G WN$ Z Q$ GM C O Z Q D TG VP GE TG VP GE O Q T H U z V H GN Z Q D G X Q O T GV PGE O Q TH U z V J IK T Z Q D G X Q / Z Q D TG VP G% UY QT UY QT UY QT UY QT Y QT GU CD Y QT GU CD Y QT GU CD Y QT GU CD
P QK V E P W (
P QK V E P W (
VZ G6 VZ G6 VZ G6 VZ G6
FP C O O Q% FP C O O Q%
_ #$ % ] # 5 1 26 _#( % ] 51 26 _ &( % ] 51 26 _(( % ] 51 26
_ & % ] _ % ] _ % ] _C % ]
5 &
G O C 0 GNK ( G O C 0 GNK (
$% 51 2 *
4 51 2 * % 51 2 * . 51 2 *
SPI Operation
The serial port of the Z86229 may be configured to operate as an I2C or SPI interface. The Z86229 always acts as the slave device with the master generating the required clock and input data signals. Two C language programs available from ZiLOG enable a PC to perform as the I2C or SPI master device of an application. The PC communicates with the Z86229 through it's parallel port. These programs are not intended as examples of how to program the application, but are only provided as a means of illustrating the serial control process. The two programs available, SEROUT and SCRIPT, are the SPI equivalent to the I2C programs IICO and SCRIPTI, respectively.
SEROUT Program
This program sends one byte to the Z86229 without checking the status of the READY bit. The program returns the contents of the Serial Status (SS) Register after the command has been entered. When the program is active the screen displays:
SPI Command Byte >
SPI Command Byte
The user may enter any valid one-byte command, such as 00h (NOP), and then hit the ENTER key. The screen then displays the byte entered and the SS register contents as follows:
SPI Byte = 00 SPI Return Val = 83h
The illustration above shows the NOP command was entered. The SS register contents, 83h, indicates that the RDY,
5 &
;4#0+/+.'42
FGWPKVPQ%
5/#4)142 01+6#46501/'&
T G FQ EG & &%% G PK. % 56 0 <
ZiLOG
FLD, and LOCK bits are "ones". This condition indicates that the serial port is ready for further input, that the input video signal was in Field 1 at the time the status was read, and that the part is operating in the video-lock mode. When this program is used, only a modified version of the RESET can be used. It is entered as two, one-byte commands (FBh and 00h). The SEROUT program is exited by entering a Control C (^C) character.
Script Program
This program is designed to send any number of one or twobyte commands to the Z86229. The list of commands to be executed are contained in Script files that have the extension .SER. The Script files used with the I2C version, SCRIPTI, can be used with this program. The program is invoked by typing:
SI File_name
Note: Enter the file_name without the .SER extension.
The screen displays:
EEG CCD2 Serial Version x.xx Script File Done Interface Script Player
When all the commands in the file have been successfully sent to the Z86229, the PC returns to the system prompt. The program checks the RDY status before sending each byte. If, during the entry of a command, the RDY bit is not found to be a "one", the program reports the contents of the SS register and then continue checking for RDY.
ZiLOG
APPLICATION INFORMATION
The recommended schematic, component placement, and PCB layout for a single-sided DIP design are provided in the following figures. EMI and noise in the video frequency range is kept to an absolute minimum by running the ground plane underneath the entire Z86229 package length. This design is recommended for both SOIC and DIP package styles. Though it is not shown in the following application information, the SMS (pin 6) must be grounded for I2C application. If necessary, please contact your local ZiLOG sales office with any questions regarding this or other information represented in this document. .
Z86229 13 14 I2C Bus VIN/INTRO SDA R G B SDO BOX VDD 17 12 CA1 RREF 10 R1
C1 R2 C2 R3 C4 C5 U1 RD GN BL SEN HIN SMS VIDEO BOX SDO SCK SDAOUT VIN/INTRO VDD(+5V)
18 2 3 1
To select 1st I2C Address
15 SCK 4 6 SEN SMS HIN LPF CSYNC VIDEO
I2 C SEL
+5V L1 CB1
C3 L1
C4 R3 C2
5 9 C5 8 7
R1
C3
VSS(A) 11
Figure 29. Z86229 Application Circuit with I2C
Figure 30. Z86229 Application Circuit with I2C
Table 22. Recommended Component Values for the Z86229 Application Circuit
( (
( ( (
CA1
R2
CB1
C1
TG F QEG & &%% GPK . % 56 0 <
VSS
;4#0+/+.'42
U VK P 7
# 0 &$ 6
(R (R
-
< FCG D
G WN C 8
5 &
V PG P QR O Q %
7 . $% # % % % % % % 4 4 4
5 &
;4#0+/+.'42
T G FQ EG & &%% G PK. % 56 0 <
ZiLOG
PACKAGING INFORMATION
Figure 31. 18-Lead DIP Package Diagram
Figure 32. 18-Lead SOIC Package Diagram
ZiLOG
ORDERING INFORMATION
For fast results, contact your local ZiLOG sales office for assistance in ordering the part required.
Temperature Speed Environmental
Example:
Z 86229 12 P S C is a Z86229, 12 MHz, DIP, 0C to + 70C, Plastic Standard Flow Environmental Flow Temperature Package Speed Product Number ZiLOG Prefix
;4#0+/+.'42
F T C F P C V 5 EK V U C N 2 % \ * / %u QV %u 5 %+ 1 5 EK V U CN 2 5 2 + & EK V U CN 2 2
Package
TG F QEG & &%% GPK . % 56 0 <
% 5 5 < % + 1 5 PK 2
\ */ <
5 &
% 5 2 < 2 + & PK 2
5'&1%
5 &
;4#0+/+.'42
T G FQ EG & &%% G PK. % 56 0 <
Document Disclaimer
ZiLOG
Pre-Characterization Product The product represented by this document is newly introduced and ZiLOG has not completed the full characterization of the product. The document states what ZiLOG knows about this product at this time, but additional features or nonconformance with some aspects of the document may be found, either by ZiLOG or its customers in the course of further application and characterization work. In addition, ZiLOG cautions that delivery may be uncertain at times, due to start-up yield issues. Development Projects Customer is cautioned that while reasonable efforts will be employed to meet performance objectives and milestone dates, development is subject to unanticipated problems and delays. No production release is authorized or committed until the Customer and ZiLOG have agreed upon a Product Specification for this product. Low Margin Customer is advised that this product does not meet ZiLOG's internal guardbanded test policies for the specification requested and is supplied on an exception basis. Customer is cautioned that delivery may be uncertain and that, in addition to all other limitations on ZiLOG liability stated on the front and back of the acknowledgment, ZiLOG makes no claim as to quality and reliability according to the Data Sheet. The product remains subject to standard warranty for replacement due to defects in materials and workmanship.
(c)2001 by ZiLOG, Inc. All rights reserved. Information in this publication concerning the devices, applications, or technology described is intended to suggest possible uses and may be superseded. ZiLOG, INC. DOES NOT ASSUME LIABILITY FOR OR PROVIDE A REPRESENTATION OF ACCURACY OF THE INFORMATION, DEVICES, OR TECHNOLOGY DESCRIBED IN THIS DOCUMENT. ZiLOG ALSO DOES NOT ASSUME LIABILITY FOR INTELLECTUAL PROPERTY INFRINGEMENT RELATED IN ANY MANNER TO USE OF INFORMATION, DEVICES, OR TECHNOLOGY DESCRIBED HEREIN OR OTHERWISE. Devices sold by ZiLOG, Inc. are covered by warranty and limitation of liability provisions appearing in the ZiLOG, Inc. Terms and Conditions of Sale. ZiLOG, Inc. makes no warranty of merchantability or fitness for any purpose. Except with the express written approval of ZiLOG, use of information, devices, or technology as critical components of life support systems is not authorized. No licenses are conveyed, implicitly or otherwise, by this document under any intellectual property rights.


▲Up To Search▲   

 
Price & Availability of Z86229NBSP

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X